public RepositorySignPackageRequestTests(CertificatesFixture fixture) { if (fixture == null) { throw new ArgumentNullException(nameof(fixture)); } _fixture = fixture; }
public SigningCertificateV2Tests(CertificatesFixture fixture) { if (fixture == null) { throw new ArgumentNullException(nameof(fixture)); } _fixture = fixture; }
public PrimarySignatureTests(CertificatesFixture fixture) { if (fixture == null) { throw new ArgumentNullException(nameof(fixture)); } _fixture = fixture; }
public AttributeUtilityTests(CertificatesFixture fixture) { if (fixture == null) { throw new ArgumentNullException(nameof(fixture)); } _fixture = fixture; }
public RepositoryCountersignatureTests(CertificatesFixture fixture) { if (fixture == null) { throw new ArgumentNullException(nameof(fixture)); } _fixture = fixture; }
public IssuerSerialTests(CertificatesFixture fixture) { if (fixture == null) { throw new ArgumentNullException(nameof(fixture)); } _fixture = fixture; }
internal LoadTest(CertificatesFixture fixture) { Certificate = fixture.GetDefaultCertificate(); var content = new SignatureContent( SigningSpecifications.V1, HashAlgorithmName.SHA256, hashValue: "hash"); var contentInfo = new ContentInfo(content.GetBytes()); SignedCms = new SignedCms(contentInfo); CmsSigner = new CmsSigner(Certificate); }
internal RemoveTest(CertificatesFixture fixture) { Certificate = fixture.GetDefaultCertificate(); Zip = new Zip(); Zip.LocalFileHeaders.Add(Zip.ContentLocalFileHeader); Zip.LocalFileHeaders.Add(Zip.NuspecLocalFileHeader); Zip.CentralDirectoryHeaders.Add(Zip.ContentCentralDirectoryHeader); Zip.CentralDirectoryHeaders.Add(Zip.NuspecCentralDirectoryHeader); UnsignedPackage = new MemoryStream(); }
public CertificateChainUtilityTests(CertificatesFixture fixture) { _fixture = fixture ?? throw new ArgumentNullException(nameof(fixture)); }
public SignedPackageArchiveUtilityTests(CertificatesFixture fixture) { _fixture = fixture ?? throw new ArgumentNullException(nameof(fixture)); }
public DefaultX509ChainBuildPolicyTests(CertificatesFixture fixture) { _fixture = fixture ?? throw new ArgumentNullException(nameof(fixture)); }
public FallbackCertificateBundleX509ChainFactoryTests(CertificatesFixture fixture) { _fixture = fixture ?? throw new ArgumentNullException(nameof(fixture)); _directory = TestDirectory.Create(); }