// if we tell the controller we are testing, use the mock data interface public arpitphonesController(IarpitphonesRepository db) { this.db = db; }
// if no mock specified, use db public arpitphonesController() { this.db = new EFarpitphonesRepository(); }