UpdateAccountSettingsRequest() private method

/// Thrown when a null reference is passed to a method that does not accept it as a /// valid argument. ///
private UpdateAccountSettingsRequest ( string url, string bio = null, bool publicImages = null, bool messagingEnabled = null, AlbumPrivacy albumPrivacy = null, bool acceptedGalleryTerms = null, string username = null, bool showMature = null, bool newsletterSubscribed = null ) : HttpRequestMessage
url string
bio string
publicImages bool
messagingEnabled bool
albumPrivacy AlbumPrivacy
acceptedGalleryTerms bool
username string
showMature bool
newsletterSubscribed bool
return System.Net.Http.HttpRequestMessage
        public void UpdateAccountSettingsRequest_WithUrlNull_ThrowsArgumentNullException()
        {
            var requestBuilder = new AccountRequestBuilder();

            var exception = Record.Exception(() => requestBuilder.UpdateAccountSettingsRequest(null));
            Assert.NotNull(exception);
            Assert.IsType<ArgumentNullException>(exception);

            var argNullException = (ArgumentNullException) exception;
            Assert.Equal(argNullException.ParamName, "url");
        }
        public async Task UpdateAccountSettingsRequest_Equal()
        {
            var client = new ImgurClient("123", "1234");
            var requestBuilder = new AccountRequestBuilder();

            var mockUrl = $"{client.EndpointUrl}account/me/settings";
            var request = requestBuilder.UpdateAccountSettingsRequest(
                mockUrl, "BioTest", true, true, AlbumPrivacy.Public,
                true, "Bob2", true, true);

            Assert.NotNull(request);
            var expected =
                "public_images=true&messaging_enabled=true&album_privacy=public&accepted_gallery_terms=true&show_mature=true&newsletter_subscribed=true&bio=BioTest&username=Bob2";

            Assert.Equal(expected, await request.Content.ReadAsStringAsync().ConfigureAwait(false));
            Assert.Equal("https://api.imgur.com/3/account/me/settings", request.RequestUri.ToString());
            Assert.Equal(HttpMethod.Post, request.Method);
        }
 public void UpdateAccountSettingsRequest_WithUrlNull_ThrowsArgumentNullException()
 {
     var requestBuilder = new AccountRequestBuilder();
     requestBuilder.UpdateAccountSettingsRequest(null);
 }