public void OAuthClientCollectionIsIterable(string xmlData) { var col = OAuthclientlist.FromXMLData(xmlData); foreach (var c in col.Data) { System.Console.WriteLine(c.Organisatienaam); } }
public void OAuthClientCollectionNotContains(string xml, string name) { var OAuthClient = OAuthclientlist.FromXMLData(xml); Assert.Throws <KeyNotFoundException>(() => OAuthClient.GetByOrganisatienaam(name)); }
public void OAuthClientCollectionContains(string name) { var OAuthClient = OAuthclientlist.FromXMLData(OAuthclientlistTestMock.OAuthClientCollectionExampleXML); Assert.NotNull(OAuthClient.GetByOrganisatienaam(name)); }
public void OAuthClientCollectionXSDFail(string xmlData) { Assert.ThrowsAny <System.Xml.Schema.XmlSchemaException>( () => OAuthclientlist.FromXMLData(xmlData)); }
public void OAuthClientCollectionInvalidXML(string xmlData) { Assert.ThrowsAny <XmlException>(() => OAuthclientlist.FromXMLData(xmlData)); }
public void OAuthClientCollectionParseOK(string xmlData) { OAuthclientlist.FromXMLData(xmlData); }