public void It_should_throw_invalid_operation_exception() { // Arrange var customers = new Domain.Customer.Customer[] { new FakeCustomer("Fake 1", "Green", _address), }; // Assert Assert.Catch <InvalidOperationException>(() => _customerResponseFactory.Create(customers)); }
public async Task <BaseCustomerDto[]> GetCustomers() { var customers = await _customerRepository.GetAll(); return(_customerResponseFactory.Create(customers)); }