GetSubredditGalleryAsync() public method

View gallery images for a subreddit.
/// Thrown when a null reference is passed to a method that does not accept it as a /// valid argument. /// Thrown when an error is found in a response from an Imgur endpoint. Thrown when an error is found in a response from a Mashape endpoint.
public GetSubredditGalleryAsync ( string subreddit, SubredditGallerySortOrder sort = SubredditGallerySortOrder.Time, TimeWindow window = TimeWindow.Week, int page = null ) : Task>
subreddit string A valid subreddit name. Example: pics, gaming
sort SubredditGallerySortOrder The order that the gallery should be sorted by. Default: Time
window TimeWindow The time period that should be used in filtering requests. Default: Week
page int The data paging number. Default: null
return Task>
        public async Task GetSubredditGalleryAsync_WithSubRedditNull_ThrowsArgumentNullException()
        {
            var client = new ImgurClient("123", "1234");
            var endpoint = new GalleryEndpoint(client);

            var exception =
                await
                    Record.ExceptionAsync(
                        async () => await endpoint.GetSubredditGalleryAsync(null).ConfigureAwait(false))
                        .ConfigureAwait(false);
            Assert.NotNull(exception);
            Assert.IsType<ArgumentNullException>(exception);
        }
        public async Task GetSubredditGalleryAsync_DefaultParameters_Any()
        {
            var mockUrl = "https://api.imgur.com/3/gallery/r/pics/time/week/";
            var mockResponse = new HttpResponseMessage(HttpStatusCode.OK)
            {
                Content = new StringContent(MockGalleryEndpointResponses.GetSubredditGallery)
            };

            var client = new ImgurClient("123", "1234");
            var endpoint = new GalleryEndpoint(client,
                new HttpClient(new MockHttpMessageHandler(mockUrl, mockResponse)));
            var gallery = await endpoint.GetSubredditGalleryAsync("pics").ConfigureAwait(false);

            Assert.True(gallery.Any());
        }
        public async Task GetSubredditGalleryAsync_WithTopYearPage7_Any()
        {
            var mockUrl = "https://api.imgur.com/3/gallery/r/pics/time/week/7";
            var mockResponse = new HttpResponseMessage(HttpStatusCode.OK)
            {
                Content = new StringContent(MockGalleryEndpointResponses.GetSubredditGallery)
            };

            var client = new ImgurClient("123", "1234");
            var endpoint = new GalleryEndpoint(client,
                new HttpClient(new MockHttpMessageHandler(mockUrl, mockResponse)));
            var gallery =
                await
                    endpoint.GetSubredditGalleryAsync("pics", SubredditGallerySortOrder.Time, TimeWindow.Week, 7)
                        .ConfigureAwait(false);

            Assert.True(gallery.Any());
        }