public BuildParameterString ( string>.Dictionary |
||
parameters | string>.Dictionary | |
return | string |
public void properties_should_be_request_formated() { Dictionary<string, string> d = new Dictionary<string, string>(); d.Add("url", "foo"); d.Add("event", "yes"); RequestBuilderHelper helper= new RequestBuilderHelper(); Assert.Equal("url=foo&event=yes", helper.BuildParameterString(d)); }
public void value_should_be_url_encoded() { Dictionary<string, string> dict = new Dictionary<string, string>(); dict.Add("url", "http://www.nnihlen.com/blog"); RequestBuilderHelper helper = new RequestBuilderHelper(); Assert.Equal("url=http%3a%2f%2fwww.nnihlen.com%2fblog", helper.BuildParameterString(dict)); }