C# 4.0
Using dynamic to unit test an Action Method that returns JsonResult with MVC 3 and C# 4
We’ve all been there, haven’t we? We have an action method that we call through Ajax.ActionLink, Ajax.BeginForm or even with jQuery.ajax, and returning a JsonResult is what makes the most sense. But whatever you pass to a JsonResult only gets exposed through the JsonResult.Data property which, ...
