public void WhenISendDeleteRequestByIdThruDeleteAsyncAction(int id) { var request = new DeleteOrderById { Id = id }; SoapServiceClient client = GetClient(); client.DeleteAsync(request).Wait(); }
public void WhenISendDeleteRequestByIdThruDeleteAsyncWithResponseAction(int id) { var request = new DeleteOrderById { Id = id }; SoapServiceClient client = GetClient(); bool response = client.DeleteAsync <bool>(request).Result; ScenarioContext.Current[ResopnseKey] = response; }