예제 #1
0
 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());
 }
예제 #2
0
 public MainMenu()
 {
     this.heroMenu    = new HeroMenu(new FileRepo(), new MessagingService());
     this.villainMenu = new VillainMenu(new FileRepo(), new MessagingService());
 }
예제 #3
0
 public MainMenu(HerosContext context)
 {
     this.heroMenu    = new HeroMenu(new DBRepo(context), new MessagingService());
     this.villainMenu = new VillainMenu(new DBRepo(context), new MessagingService());
 }