public void TestBodyIsContainsSingleItemQueryString() { provider.AddParameters(new { a = "b" }); StreamReader r = new StreamReader(provider.GetBody()); String content = r.ReadToEnd(); Assert.AreEqual("a=b", content); }
public RequestBuilder Form(IDictionary <String, String> body) { FormBodyProvider bodyProvider = new FormBodyProvider(); bodyProvider.AddParameters(body); return(this.Body(bodyProvider)); }
public RequestBuilder Form(object body) { FormBodyProvider bodyProvider = new FormBodyProvider(); bodyProvider.AddParameters(body); return(this.Body(bodyProvider)); }