public void AssertDynamicResponse() { _configuration.Get("/users/defunkt") .Response() .ReturnsDynamic(c => c.login == "defunkt", "Login did not match") .ReturnsDynamic(c => c.id == 2, "ID did not match") .Assert(); }
public void GetAuthenticatedValue() { _configuration.Get("/user/following/defunkt") .Response() .ReturnsStatus(HttpStatusCode.NotFound) .Assert(); }