public void with_in_memory_host() { // The 'Scenario' testing API was not completed, // so I never got around to creating more convenience // methods for common things like deserializing JSON // into .Net objects from the response body using (var host = InMemoryHost.For <SampleApplication>()) { host.Scenario(_ => { _.Get.Url("conneg/override/Foo?format=json"); _.Request.Accepts("text/html"); _.ContentTypeShouldBe(MimeType.Json); _.Response.Body.ReadAsText() .ShouldEqual("{\"Name\":\"Foo\"}"); }); } }