public async Task FormNameOverride()
        {
            using (MockHttpServer.PostFormReturnJson(x => x.Values["val1"] + x.Values["val2"]))
            {
                var client = HttpApiClient <IFormNameOverride> .Create("http://localhost:8844/path");

                var result = await client.GetString("foo", "bar");

                Assert.AreEqual("foobar", result);
            }
        }
        public async Task PostForm()
        {
            using (MockHttpServer.PostFormReturnJson(x => Task.FromResult <JToken>(x.Values["value1"] + "|" + x.Values["value2"])))
            {
                var client = HttpApiClient <IPostForm> .Create("http://localhost:8844/path");

                var result = await client.PostForm("value&1", 5);

                Assert.AreEqual("value&1|5", result);
            }
        }