예제 #1
0
        public void logs_error_if_certificate_does_not_match_issuer()
        {
            theCertificateValidationReturns = SamlValidationKeys.CannotMatchIssuer;
            ClassUnderTest.Validate(response);

            response.Errors.Single().ShouldEqual(new SamlError(SamlValidationKeys.CannotMatchIssuer));
        }
예제 #2
0
        public void logs_error_if_certificate_is_invalid()
        {
            theCertificateValidationReturns = SamlValidationKeys.NoValidCertificates;
            ClassUnderTest.Validate(response);

            response.Errors.Single().ShouldEqual(new SamlError(SamlValidationKeys.NoValidCertificates));
        }
예제 #3
0
        public void logs_no_error_if_the_certificate_is_valid()
        {
            theCertificateValidationReturns = SamlValidationKeys.ValidCertificate;

            ClassUnderTest.Validate(response);

            response.Errors.Any().ShouldBeFalse();
        }