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
+6 -6
View File
@@ -3,15 +3,15 @@ using NordPool.Models;
namespace NordPool.Manager.Tests;
/// <summary>
/// Shared, deterministic datasets used by the NordPool tests.
/// Keeping the generators here avoids copy-pasted price loops across test classes.
/// Shared, deterministic datasets used by the NordPool tests.
/// Keeping the generators here avoids copy-pasted price loops across test classes.
/// </summary>
internal static class NordPoolTestData
{
public static readonly DateTime DayStart = new(2026, 3, 31, 0, 0, 0, DateTimeKind.Utc);
/// <summary>
/// Builds a contiguous set of 15-minute intervals starting at <paramref name="dayStart"/>.
/// Builds a contiguous set of 15-minute intervals starting at <paramref name="dayStart" />.
/// </summary>
public static List<NordPoolDayPrice> CreateIntervals(
int count,
@@ -33,8 +33,8 @@ internal static class NordPoolTestData
}
/// <summary>
/// A full 96-interval day with a deterministic sawtooth price curve covering
/// negative, zero, cheap and expensive prices.
/// A full 96-interval day with a deterministic sawtooth price curve covering
/// negative, zero, cheap and expensive prices.
/// </summary>
public static List<NordPoolDayPrice> CreateGeneratedDay(DateTime? dayStart = null)
{
@@ -45,4 +45,4 @@ internal static class NordPoolTestData
i => Math.Round(15.0 * Math.Sin(i / 6.0) + i % 8 - 2.0, 2),
start);
}
}
}