public void getting_large_json_data() { _host.Scenario(x => { x.Get.Action <JsonSerializationEndpoint>(y => y.get_large()); x.Request.Accepts("application/json"); x.ContentShouldContain("{\"guids\":["); x.ContentTypeShouldBe(MimeType.Json); x.StatusCodeShouldBeOk(); }); }
private ScenarioAssertionException fails(Action <Scenario> configuration) { return(Exception <ScenarioAssertionException> .ShouldBeThrownBy(() => { host.Scenario(configuration); })); }