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; }
public MagnetSettingBuilder() { _mockMagnetSetting = new Mock <IOptionsSnapshot <MagnetSettings> >(); MagnetSettings setting = new MagnetSettings() { SearchSources = "Javbus, Sukebei", MaxSearchCount = 3 }; _mockMagnetSetting.Setup(ap => ap.Value).Returns(setting); }