Urls for menus in my ASP.NET MVC apps are generated from controller/actions. So, they call
controller.Url.Action(action, controller)
Now, h
Fake it easy works nicely:
var fakeUrlHelper = A.Fake(); controller.Url = fakeUrlHelper; A.CallTo(() => fakeUrlHelper.Action(A.Ignored, A.Ignored)) .Returns("/Action/Controller");