Skip to content

Instantly share code, notes, and snippets.

@hhariri
Created November 15, 2011 10:39
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 hhariri/1366735 to your computer and use it in GitHub Desktop.
Save hhariri/1366735 to your computer and use it in GitHub Desktop.
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