// if we tell the recorder that we are testing then use the mock interface public Table1Controller(Table1Repository db) { this.db = db; }
// if no mock specified then use db public Table1Controller() { this.db = new EFTable1Repository(); }