public void IterateParametersTest()
        {
            var request = new TestRequestUrl()
            {
                FirstParam       = "firstOne",
                SecondParam      = "secondOne",
                ParamsCollection = new List <KeyValuePair <string, string> > {
                    new KeyValuePair <string, string>("customParam1", "customVal1"),
                    new KeyValuePair <string, string>("customParam2", "customVal2")
                }
            };

            var result = request.Build().AbsoluteUri;

            //Parametera were given a name and a value, so both appear in the URI.
            Assert.Contains("first_query_param=firstOne", result);
            Assert.Contains("second_query_param=secondOne", result);

            //Custom parameters are key value pairs representing parameter names and values respectively.
            Assert.Contains("customParam1=customVal1", result);
            Assert.Contains("customParam2=customVal2", result);

            //The parameter name for the custom parameters does not carry through to the resulting URI.
            Assert.DoesNotContain("query_param_attribute_name", result);
        }
        public void IterateParametersTest()
        {
            var request = new TestRequestUrl()
            {
                FirstParam = "firstOne",
                SecondParam = "secondOne",
                ParamsCollection = new List<KeyValuePair<string, string>>{
                    new KeyValuePair<string,string>("customParam1","customVal1"),
                    new KeyValuePair<string,string>("customParam2","customVal2")
                }
            };

            var result = request.Build().AbsoluteUri;

            //Parametera were given a name and a value, so both appear in the URI.
            Assert.That(result, Contains.Substring("first_query_param=firstOne"));
            Assert.That(result, Contains.Substring("second_query_param=secondOne"));

            //Custom parameters are key value pairs representing parameter names and values respectively.
            Assert.That(result, Contains.Substring("customParam1=customVal1"));
            Assert.That(result, Contains.Substring("customParam2=customVal2"));

            //The parameter name for the custom parameters does not carry through to the resulting URI.
            Assert.IsFalse(result.Contains("query_param_attribute_name"));
        }