Пример #1
0
 public void JsonFormat()
 {
     client.PreferredFormat = ContentType.ResourceFormat.Json;
     client.UseFormatParam  = true;
     client.Read <Patient>("1");
     HttpTests.AssertResourceResponseConformsTo(client, client.PreferredFormat);
 }
Пример #2
0
 public void XmlAccept()
 {
     client.PreferredFormat = ContentType.ResourceFormat.Xml;
     client.UseFormatParam  = false;
     client.Read <Patient>("1");
     HttpTests.AssertResourceResponseConformsTo(client, client.PreferredFormat);
 }