You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
471 B

2 months ago
namespace Housing.Models;
public sealed class InspectionJudgementSettings
{
public decimal VMin { get; set; } = 0.00m;
public decimal VMax { get; set; } = 9.99m;
public decimal AMin { get; set; } = 0.00m;
public decimal AMax { get; set; } = 9.99m;
public bool IsPass(decimal voltage, decimal current)
{
return voltage >= VMin &&
voltage <= VMax &&
current >= AMin &&
current <= AMax;
}
}