Exemple #1
0
 public void WhenIRequestDataByThruIdGetAction(int id)
 {
     var request = new GetOrderById
         {
             Id = id
         };
     SoapServiceClient client = GetClient();
     List<Order> response = client.Get<List<Order>>(request);
     ScenarioContext.Current[ResopnseKey] = response;
 }
Exemple #2
0
 public void WhenIRequestDataByIdThruGetAsyncAction(int id)
 {
     var request = new GetOrderById
                   {
                       Id = id
                   };
     JsonServiceClient client = GetClient();
     List<Order> response = client.GetAsync<List<Order>>(request).Result;
     ScenarioContext.Current[ResopnseKey] = response;
 }