Esempio n. 1
0
 public HomeController(
     IBrowserConfigService browserConfigService,
     IFeedService feedService,
     IManifestService manifestService,
     IOpenSearchService openSearchService,
     IRobotsService robotsService,
     ISitemapService sitemapService,
     ISuperPowersService superPowerfulService)
 {
     this.browserConfigService = browserConfigService;
     this.feedService          = feedService;
     this.manifestService      = manifestService;
     this.openSearchService    = openSearchService;
     this.robotsService        = robotsService;
     this.sitemapService       = sitemapService;
     _superPowerfulService     = superPowerfulService;
 }
Esempio n. 2
0
        public void Initialize()
        {
            _mockSuperPowerfulRepository = new Mock <ISuperPowerRepository>();
            _mockVillianRepository       = new Mock <IVillianRepository>();
            _mockHeroRepository          = new Mock <IHeroRepository>();
            _mockUnitWork = new Mock <IUnitOfWork>();
            SuperPowersfulService superPowerfulService = new SuperPowersfulService(_mockSuperPowerfulRepository.Object, _mockVillianRepository.Object, _mockHeroRepository.Object);

            superPowerfulService._flagVillian = "D";
            _service = superPowerfulService;
            heroes   = new List <Hero>()
            {
                new Hero("Batman"), new Hero("Superman"), new Hero("Mujer Maravilla"), new Hero("Spiderman")
            };
            villians = new List <Villian>()
            {
                new Villian("Derek Devil"), new Villian("Darkseid"), new Villian("Detective|Marciano")
            };
            superPowerfuls = new List <SuperPowerful>()
            {
                new SuperPowerful("Batman"), new SuperPowerful("Superman"), new SuperPowerful("Mujer Maravilla"), new SuperPowerful("Derek Devil"), new SuperPowerful("Darkseid"), new SuperPowerful("Detective|Marciano"), new Hero("Spiderman")
            };
        }