예제 #1
0
        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;
        }
예제 #3
0
        public PrimarySignatureTests(CertificatesFixture fixture)
        {
            if (fixture == null)
            {
                throw new ArgumentNullException(nameof(fixture));
            }

            _fixture = fixture;
        }
예제 #4
0
        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;
        }
예제 #6
0
        public IssuerSerialTests(CertificatesFixture fixture)
        {
            if (fixture == null)
            {
                throw new ArgumentNullException(nameof(fixture));
            }

            _fixture = fixture;
        }
예제 #7
0
            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();
            }
예제 #9
0
 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));
 }
예제 #12
0
 public FallbackCertificateBundleX509ChainFactoryTests(CertificatesFixture fixture)
 {
     _fixture   = fixture ?? throw new ArgumentNullException(nameof(fixture));
     _directory = TestDirectory.Create();
 }