Ejemplo n.º 1
0
        private static void AssertAllOfEqual(XacmlAllOf expected, XacmlAllOf actual)
        {
            Assert.NotNull(actual);
            Assert.NotNull(expected);

            AssertCollections(expected.Matches, actual.Matches, AssertMatchEqual);
        }
Ejemplo n.º 2
0
        private static void WriteAllOf(XmlWriter writer, XacmlAllOf xacmlAllOf)
        {
            Guard.ArgumentNotNull(writer, nameof(writer));
            Guard.ArgumentNotNull(xacmlAllOf, nameof(xacmlAllOf));

            writer.WriteStartElement(XacmlConstants.Prefixes.Xacml, XacmlConstants.ElementNames.AllOf, Xacml30Constants.NameSpaces.Policy);

            foreach (XacmlMatch xacmlMatch in xacmlAllOf.Matches)
            {
                WriteMatch(writer, xacmlMatch);
            }

            writer.WriteEndElement();
        }