Last active
August 5, 2017 13:34
-
-
Save machielg/c3370576ec589d563559cb55d755ad98 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 SimpleCustomerRepository implements CustomerRepository { | |
@Override | |
public Iterable<Customer> allCustomers() { | |
SimpleCustomer customer1 = new SimpleCustomer(1, "John Doe"); | |
return Arrays.asList(customer1); | |
} | |
} | |
public class SimpleOrderRepository implements OrderRepository { | |
@Override | |
public Iterable<Order> allOrders() { | |
SimpleOrder order1 = new SimpleOrder(DateTime.now(), 4000); | |
return Arrays.asList(order1); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment