public BattleController() { this.battlemonContext = new BattlemonContext(); battlemonRepo = new BattlemonRepo(battlemonContext); opponentRepo = new OpponentRepo(opponentContext); }
//public BattlemonController(IBattlemonInterface context) //{ // this.context = context; //battlemonRepo = new BattlemonRepo(context); //} public BattlemonController() { this.context = new BattlemonContext(); battlemonRepo = new BattlemonRepo(context); }
public BattlemonRepo(IBattlemonInterface context) { this.context = context; }