public void JsonFormat() { client.PreferredFormat = ContentType.ResourceFormat.Json; client.UseFormatParam = true; client.Read <Patient>("1"); HttpTests.AssertResourceResponseConformsTo(client, client.PreferredFormat); }
public void XmlAccept() { client.PreferredFormat = ContentType.ResourceFormat.Xml; client.UseFormatParam = false; client.Read <Patient>("1"); HttpTests.AssertResourceResponseConformsTo(client, client.PreferredFormat); }