public void Parse_Update_Day_Test() { var updateContainerStream = SampleDataHelper.GetStream(SampleDataHelper.SampleData.UpdatesDay); var updateContainer = _updateParseService.Parse(updateContainerStream, Models.Interval.Day); Assert.NotNull(updateContainer); Assert.Equal(141, updateContainer.BannerCollection.Count); Assert.Equal(3468, updateContainer.EpisodeCollection.Count); Assert.Equal(591, updateContainer.SeriesCollection.Count); Assert.Equal(new DateTime(2014, 9, 8, 22, 0, 0), updateContainer.LastUpdated.Date.ToUniversalTime()); }
public async Task Parse_FullSeries_76156_Test() { var sampleFullSeriesCompressedStream = SampleDataHelper.GetStream(SampleDataHelper.SampleData.SeriesFull76156); var series = await _seriesParseService.ParseFull(sampleFullSeriesCompressedStream, Language.English); Assert.NotNull(series); Assert.Equal((uint)76156, series.Id); Assert.Equal(Frequency.Wednesday, series.AirDay); Assert.Equal(194, series.Episodes.Count); Assert.Equal(1, series.Genres.Count); Assert.Equal(18, series.Actors.Count); Assert.Equal(138, series.Banners.Count); Assert.Equal(new TimeSpan(20, 0, 0), series.AirTime); }