public void GetHistoryTest()
 {
     using (var server = new HttpServer(new[]
     {
         new RequestHandler
         {
             EstimatedMethod = "GET",
             EstimatedPathAndQuery = string.Format("/v1.0/accounts/{0}/dldas/1/history", Helper.AccountId),
             ContentToSend = new StringContent(TestXmlStrings.OrderHistory, Encoding.UTF8, "application/xml")
         }
     }))
     {
         var client = Helper.CreateClient();
         var i = new Dlda {Id = "1"};
         i.SetClient(client);
         var result = i.GetHistory().Result;
         if (server.Error != null) throw server.Error;
         Assert.IsTrue(result.Length > 0);
     }
 }
 public void UpdateTest()
 {
     var item = new Dlda
     {
     };
     using (var server = new HttpServer(new[]
     {
         new RequestHandler
         {
             EstimatedMethod = "PUT",
             EstimatedPathAndQuery = string.Format("/v1.0/accounts/{0}/dldas/1", Helper.AccountId),
             ContentToSend = Helper.CreateXmlContent(item)
         }
     }))
     {
         var client = Helper.CreateClient();
         var i = new Dlda { Id = "1" };
         i.SetClient(client);
         i.Update(item).Wait();
         if (server.Error != null) throw server.Error;
     }
 }