예제 #1
0
        public void WhenGettingAllRecentlyAddedEpisodes_ItShouldReturnAListOfEpisodes()
        {
            var service = new KodiService();

            var parameters = new GetRecentlyAddedEpisodesParams
            {
                Properties = new[] { EpisodeProperties.Title, EpisodeProperties.DateAdded }
            };

            var details = service.GetRecentlyAddedEpisodes(parameters);

            Assert.IsNotNull(details);
            Assert.IsNotNull(details.Result);
            Assert.Greater(details.Result.Episodes.Count, 0);
            Assert.IsInstanceOf <List <Episode> >(details.Result.Episodes);
        }