test(management): alarm-override test stubs the lean analysis projection the service now reads (review 2026-10-21 04/P6 integration)
This commit is contained in:
@@ -1151,7 +1151,9 @@ public class ManagementActorTests : TestKit, IDisposable
|
|||||||
var instance = new Instance("Inst1") { Id = 10, TemplateId = 1, SiteId = 1 };
|
var instance = new Instance("Inst1") { Id = 10, TemplateId = 1, SiteId = 1 };
|
||||||
|
|
||||||
_templateRepo.GetInstanceByIdAsync(10, Arg.Any<CancellationToken>()).Returns(instance);
|
_templateRepo.GetInstanceByIdAsync(10, Arg.Any<CancellationToken>()).Returns(instance);
|
||||||
_templateRepo.GetAllTemplatesAsync(Arg.Any<CancellationToken>())
|
// The alarm-override check resolves members off the lean analysis projection
|
||||||
|
// (review 2026-10-21 04/P6, 08/P1).
|
||||||
|
_templateRepo.GetAllTemplatesForAnalysisAsync(Arg.Any<CancellationToken>())
|
||||||
.Returns(new List<Template> { template });
|
.Returns(new List<Template> { template });
|
||||||
_templateRepo.GetAlarmOverrideAsync(10, "HighTemp", Arg.Any<CancellationToken>())
|
_templateRepo.GetAlarmOverrideAsync(10, "HighTemp", Arg.Any<CancellationToken>())
|
||||||
.Returns((InstanceAlarmOverride?)null);
|
.Returns((InstanceAlarmOverride?)null);
|
||||||
|
|||||||
Reference in New Issue
Block a user