RazorGenerator.Testing render a view with RenderAction

Jul 4, 2014 at 7:18 PM
I have a problem with unit test some views who call Html.RenderAction. It looks like that my route table is not populate, but I don't know how to do it.

Example:
var viewToRender = new iAMPSP2.Views.MyController.MyView();
CQ htmlDoc = viewToRender.Render(model);
Some helps should be very appreciate !
Coordinator
Jul 4, 2014 at 8:00 PM
Can you be more specific what the problem is? What is the behavior that you are observing?