Esempio n. 1
0
 public MagnetScrapeService(IAppLogger <MagnetScrapeService> logger, IOptionsSnapshot <MagnetSettings> magnetSettings,
                            IMovieService movieService, IMovieMagnetService movieMagnetService, IHtmlService htmlService)
 {
     _logger             = logger;
     _magnetSettings     = magnetSettings.Value;
     _movieService       = movieService;
     _movieMagnetService = movieMagnetService;
     _htmlService        = htmlService;
 }
Esempio n. 2
0
        public MagnetSettingBuilder()
        {
            _mockMagnetSetting = new Mock <IOptionsSnapshot <MagnetSettings> >();
            MagnetSettings setting = new MagnetSettings()
            {
                SearchSources  = "Javbus, Sukebei",
                MaxSearchCount = 3
            };

            _mockMagnetSetting.Setup(ap => ap.Value).Returns(setting);
        }