public void ProxyRestriction_Valid_Audience()
        {
            Assertion saml20Assertion = AssertionUtil.GetBasicAssertion();

            List<ConditionAbstract> conditions = new List<ConditionAbstract>();
            ProxyRestriction proxyRestriction = new ProxyRestriction();
            proxyRestriction.Audience = new string[] { "urn:a.wellformed:uri", "http://another/wellformed/uri"};
            conditions.Add(proxyRestriction);

            conditions.AddRange(saml20Assertion.Conditions.Items);
            saml20Assertion.Conditions.Items = conditions;

            CreateSaml20Token(saml20Assertion);
        }
        public void ProxyRestriction_Valid_Count()
        {
            Assertion saml20Assertion = AssertionUtil.GetBasicAssertion();

            List<ConditionAbstract> conditions = new List<ConditionAbstract>();
            ProxyRestriction proxyRestriction = new ProxyRestriction();
            proxyRestriction.Count = "1";
            conditions.Add(proxyRestriction);

            conditions.AddRange(saml20Assertion.Conditions.Items);
            saml20Assertion.Conditions.Items = conditions;

            CreateSaml20Token(saml20Assertion);
        }