title: Mock ParentActionViewContext MVC.Net
body: <p>I can't find a solution to mock ControllerContext.ParentActionViewContext.
  here is the code of my controller</p>
  
  <pre><code>
  [ChildActionOnly]
  public ViewResult Menu()
  {
  string controller = ControllerContext.ParentActionViewContext.RouteData.Values["controller"].ToString();
  string action = ControllerContext.ParentActionViewContext.RouteData.Values["action"].ToString();
  List menuItems = new List();
  
  ...code to populate my list...
  
  return View(menuItems);
  }
  </code></pre>
  
  <p>What I want to accomplish is mock ParentActionViewContext in a test so i can pass whatever controller and action I want to do my simulations.
  I can mock the RouteData of the ControllerContext, but I can't fake the one of the parent controller.
  Maybe I'm missing something obviuos.</p>
  
  <p>Any help is greatly appreciated.</p>