Example #1
0
        public void TryReadUnknownResourceType()
        {
            ResourceLocation rl = new ResourceLocation(client.Endpoint);

            rl.Collection = "thisreallywondexist";
            rl.Id         = "1";

            HttpTests.AssertFail(client, () => client.Fetch <Patient>(rl.ToUri()), HttpStatusCode.NotFound);
        }
Example #2
0
 public void TryReadNonExistingResource()
 {
     HttpTests.AssertFail(client, () => client.Read <Patient>("3141592unlikely"), HttpStatusCode.NotFound);
 }