public void GetOrdersByCustomerFound(string customerId)
        {
            var response = _service.GetOrdersByCustomerAsync(customerId).Result;

            Assert.NotNull(response);
            Assert.NotNull(response.Data);
            Assert.NotEmpty(response.Data.Orders);
            Assert.True(response.Data.Orders.All(p => p.CustomerId == customerId));
        }
예제 #2
0
 public async Task <ServiceResponse <CustomerOrderListVM> > GetOrdersByCustomerAsync(string customerId)
 {
     return(await _service.GetOrdersByCustomerAsync(customerId));
 }