public void AuthzDecisionStatement_Invalid_MalformedResource()
        {
            AuthzDecisionStatement statement = new AuthzDecisionStatement();
            Saml20StatementValidator validator = new Saml20StatementValidator();

            statement.Resource = "a malformed uri";
            validator.ValidateStatement(statement);
        }
        public void AuthzDecisionStatement_Valid_Resources()
        {
            AuthzDecisionStatement statement = new AuthzDecisionStatement();
            Saml20StatementValidator validator = new Saml20StatementValidator();

            statement.Resource = String.Empty;
            Action action = new Action();
            action.Namespace = "http://valid/namespace";
            statement.Action = new Action[] { action };
            validator.ValidateStatement(statement);

            statement.Resource = "urn:valid.ok:askjld";
            validator.ValidateStatement(statement);
        }
        public void AuthzDecisionStatement_Invalid_Resource()
        {
            AuthzDecisionStatement statement = new AuthzDecisionStatement();
            Saml20StatementValidator validator = new Saml20StatementValidator();

            statement.Resource = null;
            validator.ValidateStatement(statement);
        }