test(management): stub the analysis closure SetAlarmOverride now reads (TPL-4, WP6 task 6.6)

This commit is contained in:
Joseph Doherty
2026-12-03 10:59:03 -05:00
parent 790db4ff94
commit b3fba593a3
@@ -1183,6 +1183,9 @@ public class ManagementActorTests : TestKit, IDisposable
// (review 2026-10-21 04/P6, 08/P1).
_templateRepo.GetAllTemplatesForAnalysisAsync(Arg.Any<CancellationToken>())
.Returns(new List<Template> { template });
// TPL-4: SetAlarmOverride reads the template's analysis closure, not the whole table.
_templateRepo.GetTemplateAnalysisClosureAsync(template.Id, Arg.Any<CancellationToken>())
.Returns(new List<Template> { template });
_templateRepo.GetAlarmOverrideAsync(10, "HighTemp", Arg.Any<CancellationToken>())
.Returns((InstanceAlarmOverride?)null);