Last active
August 29, 2015 14:14
-
-
Save DalSoft/b5f85421339954c64071 to your computer and use it in GitHub Desktop.
Introducing DalSoft.RestClient the dynamic rest client
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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