예제 #1
0
        public Task <MovieApiReturn> GetUpcomingMoviesDataAsync(int page, string language)
        {
            var apiReturn = new MovieApiReturn();

            apiReturn.Movies = _mockMovies.ToArray();
            return(Task.FromResult(apiReturn));
        }
예제 #2
0
        public Task <MovieApiReturn> GetMoviesAsync(int page, string language, string query)
        {
            var apiReturn = new MovieApiReturn();

            apiReturn.Movies = new Movie[] { new Movie {
                                                 Title = $"{query} 1"
                                             }, new Movie {
                                                 Title = $"{query} 2"
                                             }, };
            return(Task.FromResult(apiReturn));
        }