// if we tell the controller we are testing, use the mock interface public oneController(IOneControllerRepository db) { this.db = db; }
// if no mock specified, use db public oneController() { this.db = new EFOneControllerRepository(); }