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}");
            }
        }
Beispiel #3
0
 public CustomerService(IApiHttpClient apiHttpclient, CheckoutConfiguration configuration)
 {
     _customerServiceAsync = new CustomerServiceAsync(apiHttpclient, configuration);
 }
 public CustomerAsyncController(ICustomerServiceAsync <CustomerViewModel, Customer> customerServiceAsync)
 {
     _customerServiceAsync = customerServiceAsync;
 }
Beispiel #5
0
 public CustomerController(ICustomerServiceAsync customerServiceAsync)
 {
     _customerServiceAsync = customerServiceAsync;
 }