Created
November 15, 2011 10:39
-
-
Save hhariri/1366735 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
public class a_response_that_contains_umlats | |
{ | |
Because of = () => | |
{ | |
var http = new HttpClient(); | |
http.Request.Accept = HttpContentTypes.ApplicationJson; | |
response = http.Get("https://api.github.com/users/thecodejunkie"); | |
}; | |
It should_correctly_decode_umlats = () => | |
{ | |
var user = response.DynamicBody; | |
string username = user.name; | |
username.ShouldEqual("Andreas Håkansson"); | |
}; | |
static HttpResponse response; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment