public JsonSuccess post_large(LargeInput input) { return(new JsonSuccess { Successful = input.Guids.Count.Equals(input.ExpectedCount) }); }
public void posting_large_json_data() { _host.Scenario(x => { var guids = new List <Guid>(); for (var i = 0; i < 60000; i++) { guids.Add(Guid.NewGuid()); } var input = new LargeInput { Guids = guids, ExpectedCount = 60000 }; x.JsonData(input); x.ContentShouldBe("{\"successful\":true}"); x.ContentTypeShouldBe(MimeType.Json); x.StatusCodeShouldBeOk(); }); }