Last active
August 5, 2017 13:33
-
-
Save machielg/8e0db53533906a16e7fdeddead4f8782 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Client { | |
public Client(CustomerRepository customerRepo, OrderRepository orderRepo) { | |
this.customerRepo = customerRepo; | |
this.orderRepo = orderRepo; | |
} | |
public void demonstrate() { | |
customerRepo.allCustomers().forEach(customer -> { | |
List<Order> orders = orderRepo.getOrdersForCustomer(customer.getId()); | |
//display orders... | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment