summaryrefslogtreecommitdiffstats
path: root/src/main.test/Tests/InstallationPluginTests/ScriptPluginTests.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.test/Tests/InstallationPluginTests/ScriptPluginTests.cs')
-rw-r--r--src/main.test/Tests/InstallationPluginTests/ScriptPluginTests.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main.test/Tests/InstallationPluginTests/ScriptPluginTests.cs b/src/main.test/Tests/InstallationPluginTests/ScriptPluginTests.cs
index 7a6746b..aefe164 100644
--- a/src/main.test/Tests/InstallationPluginTests/ScriptPluginTests.cs
+++ b/src/main.test/Tests/InstallationPluginTests/ScriptPluginTests.cs
@@ -66,8 +66,10 @@ namespace PKISharp.WACS.UnitTests.Tests.InstallationPluginTests
var settings = new MockSettingsService();
var userRoleService = new Mock.Services.UserRoleService();
var store = new CertificateStore(log, iis, settings, userRoleService, new FindPrivateKey(log), storeOptions);
- var oldCert = cs.RequestCertificate(null, RunLevel.Unattended, renewal, new Target("", "test.local", new List<TargetPart>()), new ACMESharp.Protocol.OrderDetails()).Result;
- var newCert = cs.RequestCertificate(null, RunLevel.Unattended, renewal, new Target("", "test.local", new List<TargetPart>()), new ACMESharp.Protocol.OrderDetails()).Result;
+ var target = new Target("", "test.local", new List<TargetPart>());
+ var targetOrder = new Order(renewal, target);
+ var oldCert = cs.RequestCertificate(null, RunLevel.Unattended, targetOrder).Result;
+ var newCert = cs.RequestCertificate(null, RunLevel.Unattended, targetOrder).Result;
newCert.StoreInfo.Add(typeof(CertificateStore), new StoreInfo() { });
var options = new ScriptOptions
{
@@ -75,7 +77,7 @@ namespace PKISharp.WACS.UnitTests.Tests.InstallationPluginTests
ScriptParameters = parameters
};
var installer = new Script(renewal, options, new Clients.ScriptClient(log, settings));
- installer.Install(new[] { store }, newCert, oldCert).Wait();
+ installer.Install(target, new[] { store }, newCert, oldCert).Wait();
}
[TestMethod]