test(management): stub the analysis closure SetAlarmOverride now reads (TPL-4, WP6 task 6.6)
This commit is contained in:
@@ -1183,6 +1183,9 @@ public class ManagementActorTests : TestKit, IDisposable
|
|||||||
// (review 2026-10-21 04/P6, 08/P1).
|
// (review 2026-10-21 04/P6, 08/P1).
|
||||||
_templateRepo.GetAllTemplatesForAnalysisAsync(Arg.Any<CancellationToken>())
|
_templateRepo.GetAllTemplatesForAnalysisAsync(Arg.Any<CancellationToken>())
|
||||||
.Returns(new List<Template> { template });
|
.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>())
|
_templateRepo.GetAlarmOverrideAsync(10, "HighTemp", Arg.Any<CancellationToken>())
|
||||||
.Returns((InstanceAlarmOverride?)null);
|
.Returns((InstanceAlarmOverride?)null);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user