コード例 #1
0
        public void WhenGettingAllRecentlyAddedMovies_ItShouldReturnAListOfMovies()
        {
            var service = new KodiService();

            var parameters = new GetRecentlyAddedMoviesParams
            {
                Properties = new[] { MovieProperties.Title, MovieProperties.Year }
            };

            var details = service.GetRecentlyAddedMovies(parameters);

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