コード例 #1
0
        private static void AssertAnyOfEqual(XacmlAnyOf expected, XacmlAnyOf actual)
        {
            Assert.NotNull(actual);
            Assert.NotNull(expected);

            AssertCollections(expected.AllOf, actual.AllOf, AssertAllOfEqual);
        }
コード例 #2
0
        private static void WriteAnyOf(XmlWriter writer, XacmlAnyOf xacmlAnyOf)
        {
            Guard.ArgumentNotNull(writer, nameof(writer));
            Guard.ArgumentNotNull(xacmlAnyOf, nameof(xacmlAnyOf));

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

            foreach (XacmlAllOf xacmlAllOf in xacmlAnyOf.AllOf)
            {
                WriteAllOf(writer, xacmlAllOf);
            }

            writer.WriteEndElement();
        }