Skip to content

Instantly share code, notes, and snippets.

@DalSoft
Last active August 29, 2015 14:14
Show Gist options
  • Save DalSoft/b5f85421339954c64071 to your computer and use it in GitHub Desktop.
Save DalSoft/b5f85421339954c64071 to your computer and use it in GitHub Desktop.
Introducing DalSoft.RestClient the dynamic rest client
dynamic client = new RestClient("http://jsonplaceholder.typicode.com");
var post = await client.Posts(1).Get();
Assert.That(post.HttpResponseMessage.StatusCode, Is.EqualTo(HttpStatusCode.OK));
Assert.That(post.id, Is.EqualTo(1));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment