public void ToQueryStringParameters_UsesHtmlEncodeForItemValue ()
        {
            // arrange
            var data = new Dictionary<string, object>
                       {
                           { "a", "a b c" }
                       };


            // act
            var result = data.ToQueryStringParameters ();


            // assert
            result.Should ().Be ("?a=a%20b%20c");
        }
        public void ToQueryStringParameters_OneItemIsEnumerable_AddsAllItemItems ()
        {
            // arrange
            var data = new Dictionary<string, object>
                       {
                           { "a", new[] { 1, 2, 3 } }
                       };


            // act
            var result = data.ToQueryStringParameters ();


            // assert
            result.Should ().Be ("?a=1&a=2&a=3");
        }
        public void ToQueryStringParameters_ItemNameCapitalized_LowerCaseOfTheFirstLetterForTheName ()
        {
            // arrange
            var data = new Dictionary<string, object>
                       {
                           { "AaA", "BbB" }
                       };


            // act
            var result = data.ToQueryStringParameters ();


            // assert
            result.Should ().Be ("?aaA=BbB");
        }
        public void ToQueryStringParameters_OneItem_ReturnsCorrectQueryString ()
        {
            // arrange
            var data = new Dictionary<string, object>
                       {
                           { "a", 1 }
                       };


            // act
            var result = data.ToQueryStringParameters ();


            // assert
            result.Should ().Be ("?a=1");
        }