Apply code formatting cleanup across monitor projects

- Reindent appsettings.json and the MSBuild project files
- Collapse single-statement guard blocks and tidy using and member order
- Normalize XML doc indentation and file endings
- Reorder BatteryMonitor test-data helpers and move the exclusion tests into
  their own region
- Carry the same formatting through the boiler config, control, entity and
  test files
This commit is contained in:
2026-11-30 11:52:06 +02:00
parent cf8c9434c8
commit 24729ee267
165 changed files with 2513 additions and 2470 deletions
@@ -1,9 +1,9 @@
using BoilerMonitor.Models;
using BoilerMonitorManager;
using FluentAssertions;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Time.Testing;
using Moq;
using BoilerMonitorManager;
namespace BoilerMonitor.Manager.Tests;
@@ -16,7 +16,10 @@ public class WaterReadyServiceTests
private readonly Mock<ILogger<WaterReadyService>> _loggerMock = new();
private readonly FakeTimeProvider _timeProvider = BoilerMonitorTestData.CreateTimeProvider();
private WaterReadyService CreateSut() => new(_loggerMock.Object, _timeProvider);
private WaterReadyService CreateSut()
{
return new WaterReadyService(_loggerMock.Object, _timeProvider);
}
private WaterReadyService CreateSutWithHeatingObserved()
{
@@ -33,10 +36,7 @@ public class WaterReadyServiceTests
double heatingThresholdWatts = Threshold)
{
var result = false;
for (var i = 0; i < count; i++)
{
result = sut.IsWaterReady(switchState, powerWatts, heatingThresholdWatts);
}
for (var i = 0; i < count; i++) result = sut.IsWaterReady(switchState, powerWatts, heatingThresholdWatts);
return result;
}
@@ -282,7 +282,8 @@ public class WaterReadyServiceTests
{
var sut = CreateSutWithHeatingObserved();
var result = FeedReadings(sut, RequiredReadings, powerWatts: powerWatts, heatingThresholdWatts: heatingThresholdWatts);
var result = FeedReadings(sut, RequiredReadings, powerWatts: powerWatts,
heatingThresholdWatts: heatingThresholdWatts);
result.Should().Be(expected);
}
@@ -475,4 +476,4 @@ public class WaterReadyServiceTests
}
#endregion
}
}