public AniDbImageProvider(IAniDbClient aniDbClient, IRateLimiters rateLimiters, IHttpClient httpClient, ILogManager logManager) { _aniDbClient = aniDbClient; _httpClient = httpClient; _rateLimiter = rateLimiters.AniDb; _log = logManager.GetLogger(nameof(AniDbImageProvider)); }
public AniDbSource(IAniDbClient aniDbClient, ITitlePreferenceConfiguration titlePreferenceConfiguration, IAniDbTitleSelector titleSelector, IEnumerable <IEmbySourceDataLoader> embySourceDataLoaders) { _aniDbClient = aniDbClient; _titlePreferenceConfiguration = titlePreferenceConfiguration; _titleSelector = titleSelector; _embySourceDataLoaders = embySourceDataLoaders; }
public AniDbPersonProvider(IAniDbClient aniDbClient, IRateLimiters rateLimiters, IHttpClient httpClient, ILogManager logManager) { this.rateLimiter = rateLimiters.AniDb; this.aniDbClient = aniDbClient; this.httpClient = httpClient; this.log = logManager.GetLogger(nameof(AniDbPersonProvider)); }
public void Setup() { this.tvDbClient = Substitute.For <ITvDbClient>(); this.aniDbClient = Substitute.For <IAniDbClient>(); this.tvDbEpisodeA = TestData.TvDbTestData.Episode(12, 48, 2); this.tvDbEpisodeB = TestData.TvDbTestData.Episode(45, 7, 2); this.aniDbEpisodeA = new AniDbEpisodeData { RawEpisodeNumber = new EpisodeNumberData { RawNumber = "44", RawType = 1 } }; this.aniDbEpisodeB = new AniDbEpisodeData { RawEpisodeNumber = new EpisodeNumberData { RawNumber = "23", RawType = 1 } }; this.tvDbClient.GetEpisodesAsync(123) .Returns(Option <List <TvDbEpisodeData> > .Some(new List <TvDbEpisodeData> { this.tvDbEpisodeA, this.tvDbEpisodeB })); this.aniDbClient.GetSeriesAsync(77) .Returns(Option <AniDbSeriesData> .Some(new AniDbSeriesData { Episodes = new[] { this.aniDbEpisodeA, this.aniDbEpisodeB } })); this.mapper = new GroupMappingEpisodeMapper(this.tvDbClient, this.aniDbClient, new ConsoleLogManager()); }
public AniDbSeriesFromEmbyData(IAniDbClient aniDbClient, ISources sources) { _aniDbClient = aniDbClient; _sources = sources; }
public GroupMappingEpisodeMapper(ITvDbClient tvDbClient, IAniDbClient aniDbClient, ILogManager logManager) { this.log = logManager.GetLogger(nameof(GroupMappingEpisodeMapper)); this.tvDbClient = tvDbClient; this.aniDbClient = aniDbClient; }
public AniDbPersonImageProvider(IAniDbClient aniDbClient, IRateLimiters rateLimiters, IHttpClient httpClient) { this.aniDbClient = aniDbClient; this.rateLimiter = rateLimiters.AniDb; this.httpClient = httpClient; }
public AniDbSeriesFromEmbyData(IAniDbClient aniDbClient, ISources sources) { this.aniDbClient = aniDbClient; this.sources = sources; }
public AniDbPersonImageProvider(IAniDbClient aniDbClient, IRateLimiters rateLimiters, IHttpClient httpClient) { _aniDbClient = aniDbClient; _rateLimiter = rateLimiters.AniDb; _httpClient = httpClient; }