private NavigationController CreateController(FakeUser fakeUser, string actionName, string controllerName) { var fakeFactory = new FakeUserFactory(fakeUser); var controller = new NavigationController(fakeFactory); controller.ControllerContext = MvcHelper.GetControllerContext(actionName, controllerName, controller); return(controller); }