public MainMenu(HeroContext context, IMapper mapper) { this.heroMenu = new HeroMenu(new FileRepo(), new MessagingService()); this.villainMenu = new VillainMenu(new FileRepo(), new MessagingService()); this.heroMenu = new HeroMenu(new DBRepo(context, mapper), new MessagingService()); this.villainMenu = new VillainMenu(new DBRepo(context, mapper), new MessagingService()); }
public MainMenu() { this.heroMenu = new HeroMenu(new FileRepo(), new MessagingService()); this.villainMenu = new VillainMenu(new FileRepo(), new MessagingService()); }
public MainMenu(HerosContext context) { this.heroMenu = new HeroMenu(new DBRepo(context), new MessagingService()); this.villainMenu = new VillainMenu(new DBRepo(context), new MessagingService()); }