Add shared test data builders and Qodana configuration

- Extract per-monitor *TestData helper classes and rework tests to use them
- Add boiler run-time tracker abstraction (implementation pending)
- Drop unused NordPool init/update-result types and stale PLAN.md
- Add qodana.yaml with the inspection set to keep the analysis focused
This commit is contained in:
2026-11-29 21:30:13 +02:00
parent 1152462765
commit 5777e641f6
79 changed files with 7162 additions and 3196 deletions
+3 -3
View File
@@ -155,7 +155,7 @@ public sealed class NordPoolEntityService(IEntityManager entityManager, ILogger<
var utcNow = DateTime.UtcNow;
var timestamp = utcNow.ToString("O");
var updateTimeState = utcNow.ToLocalTime().ToString("yyyy-MM-dd HH:mm:ss");
var updateTimeState = utcNow.ToLocalTime().ToString("yyyy-MM-dd HH:mm:ss", CultureInfo.InvariantCulture);
var priceValue = ctx.CurrentPrice.ToString("F2", CultureInfo.InvariantCulture);
var todayPricesCount = ctx.TodayNordPoolPrice?.Prices?.Count ?? 0;
var tomorrowPricesCount = ctx.TomorrowNordPoolPrice?.Prices?.Count ?? 0;
@@ -198,7 +198,7 @@ public sealed class NordPoolEntityService(IEntityManager entityManager, ILogger<
state_class = "measurement",
friendly_name = "NordPool current price",
last_updated = timestamp,
last_api_fetch = ctx.LastApiUpdateDate?.ToString("O"),
last_api_fetch = ctx.LastApiUpdateDate?.ToString("O", CultureInfo.InvariantCulture),
using_cached_data = ctx.UsingCachedData,
current_quarter_index = ctx.DayQuartersIndex
}).ConfigureAwait(false);
@@ -251,7 +251,7 @@ public sealed class NordPoolEntityService(IEntityManager entityManager, ILogger<
configured_ready_by = ctx.ConfiguredReadyBy,
total_heating_minutes = cheapestCount * NordPoolConsts.MinutesPerInterval,
is_now_cheap = ctx.IsNowCheap,
next_cheap_interval = ctx.NextCheapIntervalStart?.ToString("O"),
next_cheap_interval = ctx.NextCheapIntervalStart?.ToString("O", CultureInfo.InvariantCulture),
friendly_name = "NordPool cheapest boiler intervals",
last_updated = timestamp
}).ConfigureAwait(false);