public void TestBodyIsContainsSingleItemQueryString()
        {
            provider.AddParameters(new { a = "b" });
            StreamReader r       = new StreamReader(provider.GetBody());
            String       content = r.ReadToEnd();

            Assert.AreEqual("a=b", content);
        }
示例#2
0
        public RequestBuilder Form(IDictionary <String, String> body)
        {
            FormBodyProvider bodyProvider = new FormBodyProvider();

            bodyProvider.AddParameters(body);

            return(this.Body(bodyProvider));
        }
示例#3
0
        public RequestBuilder Form(object body)
        {
            FormBodyProvider bodyProvider = new FormBodyProvider();

            bodyProvider.AddParameters(body);

            return(this.Body(bodyProvider));
        }