public async Task GetAggregatedMoviesFromAllWorlds_handles_exception()
        {
            //Given
            string url = "url";

            mockHttpService.Setup(m => m.GetHttpResponse <Dictionary <string, MoviesCollection> >(It.IsAny <string>())).Throws <Exception>();
            var sut = new AggregatedMovieService(mockHttpService.Object);

            //When
            var actual = await sut.GetAggregatedMoviesFromAllWorlds(url);

            //Then
            Assert.Null(actual);
        }
        public async Task GetAggregatedMoviesFromAllWorlds_returns_correct_count(Dictionary <string, MoviesCollection> allMovies, int worldCount, int movieCount)
        {
            //Given
            string url = "url";

            mockHttpService.Setup(m => m.GetHttpResponse <Dictionary <string, MoviesCollection> >(It.IsAny <string>())).ReturnsAsync(allMovies);
            var sut = new AggregatedMovieService(mockHttpService.Object);

            //When
            var actual = await sut.GetAggregatedMoviesFromAllWorlds(url);

            var moviesToList = actual.Values.ToList();
            var movies       = moviesToList.SelectMany(x => x.Movies);

            //Then
            Assert.IsType <Dictionary <string, MoviesCollection> >(actual);
            Assert.Equal(worldCount, actual.Count);
            Assert.Equal(movieCount, movies.Count());
        }