Exemple #1
0
        public void ShouldFindCalifornication()
        {
            TvDBHttpClient tvdb   = new TvDBHttpClient(KEY, "fr");
            var            series = tvdb.GetSeries("californication").Result;

            Assert.NotNull(series);
            Assert.NotEmpty(series);
            Assert.True(series.All(s => s.Name.ToLowerInvariant().Contains("californication")));
            Assert.True(series.All(s => s.Id != 0));
        }
Exemple #2
0
        public void ShouldFindEpisodesForCalifornication()
        {
            TvDBHttpClient tvdb     = new TvDBHttpClient(KEY, "fr");
            var            serie    = tvdb.GetSeries("californication").Result.FirstOrDefault();
            var            episodes = tvdb.GetSerie(serie.Id).Result;

            Assert.NotNull(episodes);
            Assert.NotNull(episodes.Serie);
            Assert.NotNull(episodes.Episodes);
            Assert.NotEmpty(episodes.Episodes);
        }