public void SetUp() { UrlContext.Reset(); var registry = new FubuRegistry(); registry.Actions.IncludeType <OneController>(); registry.Actions.IncludeType <TwoController>(); registry.Actions.ExcludeMethods(x => x.Method.Name.Contains("Ignore")); registry.Routes .IgnoreControllerFolderName() .IgnoreNamespaceForUrlFrom <UrlRegistryIntegrationTester>() .IgnoreClassSuffix("Controller"); registry.ResolveTypes(x => x.AddStrategy <UrlModelForwarder>()); // need to do forwards graph = registry.BuildGraph(); var resolver = graph.Services.DefaultServiceFor <ITypeResolver>().Value; urls = new UrlRegistry(new ChainResolver((ITypeResolver)resolver, graph), new JQueryUrlTemplate()); }
public void SetUp() { UrlContext.Reset(); graph = new FubuRegistry(x => x.Actions.IncludeClassesSuffixedWithController()).BuildGraph(); registry = new UrlRegistry(new ChainResolver(new TypeResolver(), graph), new JQueryUrlTemplate()); }
protected void Application_Start(object sender, EventArgs e) { ObjectFactory.Initialize(InitializeStructureMap); UrlContext.Reset(); Bootstrap(); _signalRRegistry.Configure(); }
public void SetUp() { UrlContext.Reset(); }
public void TearDown() { UrlContext.Reset(); }