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