Skip to content

Instantly share code, notes, and snippets.

@jmarmolejos
Created October 16, 2016 18:22
Show Gist options
  • Save jmarmolejos/cd44755a7f3adeeb1582a72fb5bd7b41 to your computer and use it in GitHub Desktop.
Save jmarmolejos/cd44755a7f3adeeb1582a72fb5bd7b41 to your computer and use it in GitHub Desktop.
[TestMethod]
public async Task Request_auth_through_kong()
{
var client = new HttpClient(new KongAuthHttpClientHandler());
var response = await client.PostAsJsonAsync("http://requestb.in/1lcvbtp1", new {foo = "bar"});
Assert.AreEqual(HttpStatusCode.OK, response.StatusCode);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment