Skip to content

Instantly share code, notes, and snippets.

@DalSoft
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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