I\'m writing a unit test and I call an action method like this
var result = controller.Action(123);
result is ActionResult and
ActionResult
consider a = ActionResult;
ViewResult p = (ViewResult)a; p.ViewData.Model