private void ThenCreateNewBusinessWithoutSport(ApiResponse response, ExpectedBusiness expectedBusiness)
        {
            AssertNewBusinessResponse(response, expectedBusiness);

            AssertBusinessGet(expectedBusiness);
        }
 private ApiResponse WhenTryRegisterBusinessUsingHttp(ExpectedBusiness business)
 {
     return(BusinessRegistrar.RegisterBusiness(business, "http"));
 }
 private ApiResponse WhenTryRegisterBusiness(ExpectedBusiness business)
 {
     return(BusinessRegistrar.RegisterBusiness(business));
 }
Пример #4
0
 private static ApiResponse PostService(ExpectedBusiness business, string json)
 {
     return(new TestCoachseekAuthenticatedApiClient(business.UserName, business.Password)
            .PostAsync <ServiceData, ApiApplicationError[]>(json, "Services").Result);
 }
 private static ApiResponse PostCustomer(ExpectedBusiness business, string json)
 {
     return(new TestCoachseekAuthenticatedApiClient(business.UserName, business.Password)
            .Post <CustomerData>(json, "Customers"));
 }
 public SetupData(ExpectedBusiness business)
 {
     Business = business;
 }