private static void AssertAnyOfEqual(XacmlAnyOf expected, XacmlAnyOf actual) { Assert.NotNull(actual); Assert.NotNull(expected); AssertCollections(expected.AllOf, actual.AllOf, AssertAllOfEqual); }
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(); }