コード例 #1
0
        public void SubjectConfirmation_WrongIdentifier()
        {
            Assertion saml20Assertion = AssertionUtil.GetBasicAssertion();
            saml20Assertion.Subject.Items = new object[] { String.Empty, 24, new List<object>(1), new Advice() };

            Saml20SubjectValidator validator = new Saml20SubjectValidator();
            validator.ValidateSubject(saml20Assertion.Subject);
        }
コード例 #2
0
        public void SubjectConfirmation()
        {
            Assertion saml20Assertion = AssertionUtil.GetBasicAssertion();

            saml20Assertion.Subject.Items = new object[] { };

            Saml20SubjectValidator validator = new Saml20SubjectValidator();
            validator.ValidateSubject(saml20Assertion.Subject);
        }