Beispiel #1
0
        private SeasonInfoDownloader CreateSeasonInfoDownloader()
        {
            var existSeasonTestInfo = SeasonTestInfoBuilder.ExistingSeasons.TouchOfClothS1;
            var seasonTestInfo      = SeasonTestInfoBuilder.GetSeasonTestInfo(existSeasonTestInfo);

            return(CreateSeasonInfoDownloader(seasonTestInfo));
        }
Beispiel #2
0
        public async Task GetInfoListAsync_GettingEpisodesUri_CorrectUriTest(
            SeasonTestInfoBuilder.ExistingSeasons existSeasonTestInfo)
        {
            // Arrange
            var testInfo             = SeasonTestInfoBuilder.GetSeasonTestInfo(existSeasonTestInfo);
            var seasonInfoDownloader = this.CreateSeasonInfoDownloader(testInfo);

            // Act
            var resultUriList = await seasonInfoDownloader.GetInfoListAsync(new Uri(testInfo.Uri));

            // Assert
            for (int i = 0; i < testInfo.EpisodeCounts; i++)
            {
                StringAssert.Contains(resultUriList[i].ToString(), testInfo.EpisodeFileNames[i]);
            }
        }