private static async Task UpdateCustomerTest(ICustomerServiceAsync customerService) { CustomerFaker customerFaker = new CustomerFaker(); Customer customer = customerFaker.Generate(); await customerService.UpdateAsync(customer); }
private static async Task GetCustomersTest(ICustomerServiceAsync customerService) { IEnumerable <Customer> customers = await customerService.GetAsync(); foreach (var customer in customers) { Console.WriteLine($"{customer.FirstName} {customer.LastName}"); } }
public CustomerService(IApiHttpClient apiHttpclient, CheckoutConfiguration configuration) { _customerServiceAsync = new CustomerServiceAsync(apiHttpclient, configuration); }
public CustomerAsyncController(ICustomerServiceAsync <CustomerViewModel, Customer> customerServiceAsync) { _customerServiceAsync = customerServiceAsync; }
public CustomerController(ICustomerServiceAsync customerServiceAsync) { _customerServiceAsync = customerServiceAsync; }