Пример #1
0
        public Film GenerateFilmSuggestion()
        {
            var result = _service.GenerateFilmSuggestion();
            var film   = CreateModelFromApiResult(result);

            return(film);
        }
Пример #2
0
        public void GenerateFilmSuggestion_ReturnsSearchMovie()
        {
            // act
            var movie        = _service.GenerateFilmSuggestion();
            var expectedType = typeof(SearchMovie);

            // assert
            Assert.NotNull(movie);
            Assert.IsType(expectedType, movie);
            Assert.True(movie.Adult == false);
            Assert.True(movie.Video == false);
        }