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)); }
public async Task <ServiceResponse <CustomerOrderListVM> > GetOrdersByCustomerAsync(string customerId) { return(await _service.GetOrdersByCustomerAsync(customerId)); }