// use mock data while testing public ClassicCarsController(InterfaceClassicCarsRepository db) { this.db = db; }
//if no mock data, use live database public ClassicCarsController() { this.db = new EFClassicCarsRepository(); }
// use mock data while testing public ClassicCarsController(InterfaceClassicCarsRepository db) { this.db = db; }
//if no mock data, use live database public ClassicCarsController() { this.db = new EFClassicCarsRepository(); }