Hi,
I have a paging controller with a method which calls
RouteTable.Routes.GetVirtualPath(this.viewContext.RequestContext, valueDictionary)
I am trying to test this method using Rhino mocks and I'm unsure how to mock GetVirtualPath to return a route other than null. I am mocking the RequestContext but I am unsure which methods/properties need to be stubbed.
By stubbing the mockRequestContext appropriately should GetVirtualPath return a non null path, and if so what needs to be stubbed for this to work?
Any advice much appreciated.