private TestContext(SignArgs args, TestDirectory directory, X509Certificate2 certificate, TestLogger logger) { Args = args; Directory = directory; Certificate = certificate; Runner = new SignCommandRunner(); Logger = logger; }
public override async Task ExecuteCommandAsync() { var signArgs = GetSignArgs(); var signCommandRunner = new SignCommandRunner(); var result = await signCommandRunner.ExecuteCommandAsync(signArgs); if (result != 0) { throw new ExitCodeException(exitCode: result); } }
public override async Task ExecuteCommandAsync() { var signRequest = GetSignRequest(); var packages = GetPackages(); var signCommandRunner = new SignCommandRunner(); var result = await signCommandRunner.ExecuteCommandAsync( packages, signRequest, Timestamper, Console, OutputDirectory, Overwrite, CancellationToken.None); if (result != 0) { throw new ExitCodeException(exitCode: result); } }