If I have a controller like this:
[HttpPost] public JsonResult FindStuff(string query) { var results = _repo.GetStuff(query); var jsonResult = results
This is how I assert it
foreach (var item in jsonResult.Data as dynamic) { ((int)item.Id).ShouldBe( expected Id value ); ((string)item.name).ShouldBe( "expected name value" ); }