예제 #1
0
        public CrossVerifyTestFixture()
        {
#if IS_DESKTOP
            var patchedCliFolder = TestDotnetCLiUtility.CopyAndPatchLatestDotnetCli(sdkVersion: SdkVersion, sdkTfm: SdkTfm);
            _dotnetExePath = Path.Combine(patchedCliFolder, DotnetExe);
#else
            var nugetExeFolder = TestFileSystemUtility.GetNuGetExeDirectoryInRepo();
            _nugetExePath = Path.Combine(nugetExeFolder, NuGetExe);
#endif
            _testServer = new Lazy <Task <SigningTestServer> >(SigningTestServer.CreateAsync);
            _defaultTrustedCertificateAuthority = new Lazy <Task <CertificateAuthority> >(CreateDefaultTrustedCertificateAuthorityAsync);
            _defaultTrustedTimestampService     = new Lazy <Task <TimestampService> >(CreateDefaultTrustedTimestampServiceAsync);
            _responders = new DisposableList <IDisposable>();
            _defaultAuthorSigningCertficate     = new Lazy <Task <X509Certificate2> >(CreateDefaultAuthorSigningCertificateAsync);
            _defaultRepositorySigningCertficate = new Lazy <Task <X509Certificate2> >(CreateDefaultRepositorySigningCertificateAsync);
        }