From 1444f85919b864f5b0e22dd7a8028ed6a3b47047 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Mon, 28 Sep 2026 20:32:26 -0400 Subject: [PATCH] fix(site-secrets): ManagementActorTests build the ArtifactDeploymentService proxy with the new SiteSecretsCollector ctor arg Task 6 appended SiteSecretsCollector to ArtifactDeploymentService's constructor; the NSubstitute class proxy in ManagementActorTests still passed the old ten arguments, so the four DeployArtifacts_* tests failed with 'Could not find a constructor'. Caught by the Task 13 full-solution run. --- .../ManagementActorTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/ZB.MOM.WW.ScadaBridge.ManagementService.Tests/ManagementActorTests.cs b/tests/ZB.MOM.WW.ScadaBridge.ManagementService.Tests/ManagementActorTests.cs index f64e099d..25cc6411 100644 --- a/tests/ZB.MOM.WW.ScadaBridge.ManagementService.Tests/ManagementActorTests.cs +++ b/tests/ZB.MOM.WW.ScadaBridge.ManagementService.Tests/ManagementActorTests.cs @@ -85,7 +85,8 @@ public class ManagementActorTests : TestKit, IDisposable Substitute.For(), Options.Create(new DeploymentManagerOptions()), NullLogger.Instance, - new ArtifactRevisionHashService()); + new ArtifactRevisionHashService(), + new SiteSecretsCollector(Substitute.For())); _services.AddScoped(_ => _artifactService); }