Beispiel #1
0
 // mock constructor
 public CustomersController(ICustomersMock mock)
 {
     this.db = mock;
 }
Beispiel #2
0
 // default constructor uses the live db
 public CustomersController()
 {
     this.db = new EFCustomers();
 }