public void SetParam() { GetRequestBuilder <int, Greeting> b = new GetRequestBuilder <int, Greeting>(baseUrl); Assert.IsFalse(b.HasParam("param1")); b.SetParam("param1", 123); Assert.IsTrue(b.HasParam("param1")); Assert.AreEqual(123, b.GetParam("param1")); b.SetParam("param1", "value1"); b.SetParam("param2", "value2"); Assert.AreEqual("value1", b.GetParam("param1")); Assert.IsTrue(b.HasParam("param2")); Assert.AreEqual("value2", b.GetParam("param2")); b.SetParams(new Dictionary <string, object>() { { "param1", "new value1" } }); Assert.IsTrue(b.HasParam("param1")); Assert.AreEqual("new value1", b.GetParam("param1")); Assert.IsTrue(b.HasParam("param2")); Assert.AreEqual("value2", b.GetParam("param2")); b.ClearParams(); Assert.IsFalse(b.HasParam("param1")); Assert.IsFalse(b.HasParam("param2")); }