Error!
Success!

Using dynamic type to test controller actions returning JsonResult

0
kicks

Using dynamic type to test controller actions returning JsonResult  (Unpublished)

I wrote unit tests for my ASP.NET MVC application that uses some jQuery AJAX-components. These components load data from server in JSON format. I needed to write tests for these methods to make sure that correct data is returned to client. In this posting I will show you how to use dynamic type to test JSON-based action results and therefore avoid creating DTO classes.


Kicked By:
Drop Kicked By: