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