This commit is contained in:
2026-06-28 13:58:35 +03:00
parent 8f45028715
commit e6bf8258bb
114 changed files with 4365 additions and 874 deletions
+4 -4
View File
@@ -20,7 +20,7 @@ public class NordPoolInitTests
private readonly Mock<INordPoolEntityService> _entityServiceMock;
private readonly Mock<IScheduler> _schedulerMock;
private readonly Mock<ICheapestIntervalsFinder> _cheapestIntervalsFinderMock;
private readonly Mock<IBoilerConfigReader> _boilerConfigReaderMock;
private readonly Mock<INordPoolBoilerConfigProvider> _boilerConfigProviderMock;
private readonly Mock<IHaContext> _haContextMock;
private readonly Entities _entities;
@@ -32,7 +32,7 @@ public class NordPoolInitTests
_schedulerMock = new Mock<IScheduler>();
_schedulerMock.Setup(s => s.Now).Returns(DateTimeOffset.UtcNow);
_cheapestIntervalsFinderMock = new Mock<ICheapestIntervalsFinder>();
_boilerConfigReaderMock = new Mock<IBoilerConfigReader>();
_boilerConfigProviderMock = new Mock<INordPoolBoilerConfigProvider>();
_haContextMock = new Mock<IHaContext>();
_entities = new Entities(_haContextMock.Object);
@@ -51,7 +51,7 @@ public class NordPoolInitTests
_cheapestIntervalsFinderMock
.Setup(c => c.IsCurrentIntervalCheap(It.IsAny<IReadOnlyList<CheapestIntervalResult>>(), It.IsAny<DateTime>()))
.Returns(false);
_boilerConfigReaderMock.Setup(b => b.ReadConfig()).Returns(new BoilerConfig
_boilerConfigProviderMock.Setup(b => b.GetCurrentConfiguration()).Returns(new BoilerConfig
{
IntervalCount = 4,
PriceCap = double.MaxValue,
@@ -72,7 +72,7 @@ public class NordPoolInitTests
_entityServiceMock.Object,
_schedulerMock.Object,
_cheapestIntervalsFinderMock.Object,
_boilerConfigReaderMock.Object,
_boilerConfigProviderMock.Object,
options);
}