Skip to content

Instantly share code, notes, and snippets.

@machielg
Last active August 5, 2017 13:34
Show Gist options
  • Save machielg/c3370576ec589d563559cb55d755ad98 to your computer and use it in GitHub Desktop.
Save machielg/c3370576ec589d563559cb55d755ad98 to your computer and use it in GitHub Desktop.
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