示例#1
0
        public void GetTVSeasonsForShow_ValidShow_ReturnsShows()
        {
            //  Arrange
            iTunesSearchManager search = new iTunesSearchManager();
            string showName            = "Modern Family";

            //  Act
            var items = search.GetTVSeasonsForShow(showName).Result;

            //  Assert
            Assert.IsTrue(items.Seasons.Any());
        }
示例#2
0
        public void GetTVSeasonsForShow_ValidShowAndCountryCode_ReturnsShows()
        {
            //  Arrange
            iTunesSearchManager search = new iTunesSearchManager();
            string showName            = "Top of the Lake";
            string countryCode         = "AU"; /* Australia */

            //  Act
            var items = search.GetTVSeasonsForShow(showName, 20, countryCode).Result;

            //  Assert
            Assert.IsTrue(items.Seasons.Any());
        }