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.
This commit is contained in:
@@ -85,7 +85,8 @@ public class ManagementActorTests : TestKit, IDisposable
|
||||
Substitute.For<IAuditService>(),
|
||||
Options.Create(new DeploymentManagerOptions()),
|
||||
NullLogger<ArtifactDeploymentService>.Instance,
|
||||
new ArtifactRevisionHashService());
|
||||
new ArtifactRevisionHashService(),
|
||||
new SiteSecretsCollector(Substitute.For<ZB.MOM.WW.Secrets.Abstractions.ISecretStore>()));
|
||||
_services.AddScoped(_ => _artifactService);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user