Example #1
0
        private static async Task UpdateCustomerTest(ICustomerServiceAsync customerService)
        {
            CustomerFaker customerFaker = new CustomerFaker();

            Customer customer = customerFaker.Generate();

            await customerService.UpdateAsync(customer);
        }
Example #2
0
        private static async Task GetCustomersTest(ICustomerServiceAsync customerService)
        {
            IEnumerable <Customer> customers = await customerService.GetAsync();

            foreach (var customer in customers)
            {
                Console.WriteLine($"{customer.FirstName} {customer.LastName}");
            }
        }
Example #3
0
 public CustomerService(IApiHttpClient apiHttpclient, CheckoutConfiguration configuration)
 {
     _customerServiceAsync = new CustomerServiceAsync(apiHttpclient, configuration);
 }
 public CustomerAsyncController(ICustomerServiceAsync <CustomerViewModel, Customer> customerServiceAsync)
 {
     _customerServiceAsync = customerServiceAsync;
 }
Example #5
0
 public CustomerController(ICustomerServiceAsync customerServiceAsync)
 {
     _customerServiceAsync = customerServiceAsync;
 }