Ejemplo n.º 1
0
        public void TestGetCreditEpisode()
        {
            Credit result = Config.Client.GetCreditsAsync(IdHelper.BruceWillisMiamiVice).Result;

            Assert.NotNull(result);
            Assert.NotNull(result.Media);
            Assert.NotNull(result.Media.Episodes);

            CreditEpisode item = result.Media.Episodes.SingleOrDefault(s => s.Name == "No Exit");

            Assert.NotNull(item);

            Assert.Equal(new DateTime(1984, 11, 9), item.AirDate);
            Assert.Equal(8, item.EpisodeNumber);
            Assert.Equal("No Exit", item.Name);
            Assert.Equal("Crockett attempts to help an old flame free herself from a racketeer, then is framed for taking bribes. Martin Castillo becomes the squad's new Lieutenant.", item.Overview);
            Assert.Equal(1, item.SeasonNumber);
            Assert.True(TestImagesHelpers.TestImagePath(item.StillPath), "item.StillPath was not a valid image path, was: " + item.StillPath);
        }
Ejemplo n.º 2
0
        public void TestGetCreditEpisode()
        {
            Credit result = _config.Client.GetCredits(BruceWillisMiamiVice);

            Assert.IsNotNull(result);
            Assert.IsNotNull(result.Media);
            Assert.IsNotNull(result.Media.Episodes);

            CreditEpisode item = result.Media.Episodes.SingleOrDefault(s => s.Name == "No Exit");

            Assert.IsNotNull(item);

            Assert.AreEqual(new DateTime(1984, 11, 9), item.AirDate);
            Assert.AreEqual(8, item.EpisodeNumber);
            Assert.AreEqual("No Exit", item.Name);
            Assert.AreEqual("Crockett attempts to help an old flame free herself from a racketeer, then is framed for taking bribes. Martin Castillo becomes the squad's new Lieutenant.", item.Overview);
            Assert.AreEqual(1, item.SeasonNumber);
            Assert.AreEqual("/zJZDnnNGO0ciOQ9SUdEGLLCE4r0.jpg", item.StillPath);
        }