public void SetUp() { _routeCollection = MockRepository.GenerateMock<IRouteCollection>(); _httpRuntime = MockRepository.GenerateMock<IHttpRuntime>(); _httpRuntime.Stub(arg => arg.AppDomainAppVirtualPath).Return("/path"); _urlResolver = new UrlResolver(_routeCollection, _httpRuntime); }
public void SetUp() { _routeId = Guid.NewGuid(); _routeCollection = new RouteCollection { new Route.Routing.Route("name", _routeId, "relative") }; _httpRuntime = MockRepository.GenerateMock<IHttpRuntime>(); _httpRuntime.Stub(arg => arg.AppDomainAppVirtualPath).Return("/path"); _urlResolver = new UrlResolver(_routeCollection, _httpRuntime); }
public void SetUp() { _id = Guid.Parse("265e2da0-458d-40c1-850c-b8ceb1d798a4"); _routeCollection = new RouteCollection { new Route.Routing.Route("name", _id, "relative") }; _httpRuntime = MockRepository.GenerateMock<IHttpRuntime>(); _httpRuntime.Stub(arg => arg.AppDomainAppVirtualPath).Return("/path"); _urlResolver = new UrlResolver(_routeCollection, _httpRuntime); }
public void SetUp() { _routeCollection = MockRepository.GenerateMock<IRouteCollection>(); _httpRuntime = MockRepository.GenerateMock<IHttpRuntime>(); _urlResolver = new UrlResolver(_routeCollection, _httpRuntime); }