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:
Joseph Doherty
2026-10-22 09:31:03 -04:00
parent 008976f3d8
commit 3304381636
@@ -1151,7 +1151,9 @@ public class ManagementActorTests : TestKit, IDisposable
var instance = new Instance("Inst1") { Id = 10, TemplateId = 1, SiteId = 1 };
_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 });
_templateRepo.GetAlarmOverrideAsync(10, "HighTemp", Arg.Any<CancellationToken>())
.Returns((InstanceAlarmOverride?)null);