Inheritance: IRouteCollection
Example #1
0
			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);
			}
Example #2
0
			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 = new RouteCollection
					{
						new Route.Routing.Route("name1", Guid.NewGuid(), "route1"),
						new Route.Routing.Route("name2", Guid.NewGuid(), "route2")
					};
			}
			public void SetUp()
			{
				_routeCollection = new RouteCollection(true) { new Route.Routing.Route("name", Guid.NewGuid(), "route") };
			}
			public void SetUp()
			{
				_routeCollection = new RouteCollection();
			}
			public void SetUp()
			{
				_route = new Route.Routing.Route("test1", Guid.NewGuid(), "test1");
				_routeCollection = new RouteCollection
					{
						_route,
						new Route.Routing.Route("test2", Guid.NewGuid(), "test2")
					};
			}
			public void SetUp()
			{
				_id = Guid.NewGuid();
				_routeCollection = new RouteCollection { new Route.Routing.Route("name1", _id, "route") };
			}
			public void SetUp()
			{
				_routeId = Guid.Parse("f2d43d2b-1075-40bd-9403-8be9f2ad585c");
				_route = new Route.Routing.Route("test1", _routeId, "test1");
				_routeCollection = new RouteCollection
					{
						_route,
						new Route.Routing.Route("test2", Guid.NewGuid(), "test2")
					};
			}