Ejemplo n.º 1
0
        public void Can_Build_Multiple_Policies_From_Enum()
        {
            var policies = BankIdCertificatePolicies.GetPoliciesForProductionEnvironment(
                BankIdCertificatePolicy.BankIdOnFile,
                BankIdCertificatePolicy.MobileBankId
                );

            Assert.Equal(new[] { "1.2.752.78.1.1", "1.2.752.78.1.5" }, policies);
        }
Ejemplo n.º 2
0
        public void Can_Build_Single_Policy_From_Enum()
        {
            var policy = BankIdCertificatePolicies.GetPolicyForProductionEnvironment(BankIdCertificatePolicy.BankIdOnFile);

            Assert.Equal("1.2.752.78.1.1", policy);
        }
Ejemplo n.º 3
0
        public void Test_Policy_Is_Present_For_Test()
        {
            var policies = BankIdCertificatePolicies.GetPoliciesForTestEnvironment(BankIdCertificatePolicy.TestBankId);

            Assert.Equal(new[] { "1.2.752.60.1.6" }, policies);
        }
Ejemplo n.º 4
0
        public void Test_Policy_Is_Not_Present_For_Production()
        {
            var policies = BankIdCertificatePolicies.GetPoliciesForProductionEnvironment(BankIdCertificatePolicy.TestBankId);

            Assert.Equal(new string[] { }, policies);
        }