Beispiel #1
0
 public HeroMenu(ISuperHeroRepo repo, IMessagingService service)
 {
     this.repo        = repo;
     this.service     = service;
     tasks            = new HerosLib.HeroTasks();
     this.heroService = new HeroService(repo);
 }
Beispiel #2
0
 public HeroService(ISuperHeroRepo repo)
 {
     this.repo = repo;
 }
Beispiel #3
0
 //the argument for this constructor is passed in Startup.cs
 public SuperHeroController(ISuperHeroRepo repo)
 {
     _repo = repo;
 }