feat: add BatteryMonitor implementation with discovery, notification, and scheduling services
This commit is contained in:
@@ -71,7 +71,7 @@ public class WaterReadyServiceTests
|
||||
var sut = CreateSut();
|
||||
|
||||
// Act
|
||||
var result = sut.IsWaterReady("on", 2000.0, BoilerMonitorConsts.DefaultHeatingPowerThresholdWatts);
|
||||
var result = sut.IsWaterReady("on", 2150.0, BoilerMonitorConsts.DefaultHeatingPowerThresholdWatts);
|
||||
|
||||
// Assert
|
||||
result.Should().BeFalse();
|
||||
@@ -202,7 +202,7 @@ public class WaterReadyServiceTests
|
||||
sut.NotifyTurnedOn();
|
||||
|
||||
// Act — high power during grace period is still "not ready" (heating)
|
||||
var result = sut.IsWaterReady("on", 2000.0, BoilerMonitorConsts.DefaultHeatingPowerThresholdWatts);
|
||||
var result = sut.IsWaterReady("on", 2150.0, BoilerMonitorConsts.DefaultHeatingPowerThresholdWatts);
|
||||
|
||||
// Assert
|
||||
result.Should().BeFalse();
|
||||
@@ -420,7 +420,7 @@ public class WaterReadyServiceTests
|
||||
var sut = CreateSut();
|
||||
|
||||
// Act — water is not ready (high power), no cooldown should be triggered
|
||||
sut.IsWaterReady("on", 2000.0, BoilerMonitorConsts.DefaultHeatingPowerThresholdWatts);
|
||||
sut.IsWaterReady("on", 2150.0, BoilerMonitorConsts.DefaultHeatingPowerThresholdWatts);
|
||||
|
||||
// Assert
|
||||
sut.IsInCooldown.Should().BeFalse();
|
||||
|
||||
Reference in New Issue
Block a user