Refactor UpdateCheapestIntervals logic to return a result object and improve code readability. Introduce CheapestIntervalsUpdateResult model for encapsulating update details and simplify inline tuples.

This commit is contained in:
Marius
2026-03-16 12:00:23 +02:00
parent 53eb53539a
commit 42b1fe3b18
5 changed files with 44 additions and 18 deletions
@@ -0,0 +1,11 @@
namespace NordPoolManager.Models;
/// <summary>
/// Result of updating cheapest intervals, containing the effective configuration used for the update.
/// </summary>
public class CheapestIntervalsUpdateResult
{
public int IntervalCount { get; init; }
public double PriceCap { get; init; }
public bool SkipPriceCap { get; init; }
}