public void SetServiceUrlPropertyTest()
        {
            IClient client = new IBMHttpClient();

            client.ServiceUrl = "http://www.service-url.com";

            var restRequest = client.GetAsync("/v1/operation");

            Assert.IsTrue(restRequest.Message.RequestUri.AbsoluteUri == "http://www.service-url.com/v1/operation");
        }
        public void TestArgEscape()
        {
            IClient client = new IBMHttpClient()
            {
                ServiceUrl = "http://baseuri.com"
            };

            var restRequest = client.GetAsync("/v1/operation");

            restRequest.WithArgument("myArg", "Is this a valid arg?");

            Assert.IsTrue(restRequest.Message.RequestUri == new Uri("http://baseuri.com/v1/operation?myArg=Is+this+a+valid+arg%3F"));
        }
 public void NoUrlTest()
 {
     IClient client      = new IBMHttpClient();
     var     restRequest = client.GetAsync("/v1/operation");
 }