protected void Application_Start() { AreaRegistration.RegisterAllAreas(); RegisterRoutes(RouteTable.Routes); RavenDbHelper.ConfigureRaven(ObjectFactory.Container); DependencyResolver.SetResolver(new StructureMapDependencyResolver(ObjectFactory.Container)); }
protected override void ApplicationStartup(IContainer container, IPipelines pipelines) { base.ApplicationStartup(container, pipelines); RavenDbHelper.ConfigureRaven(container); container.Configure(x => x.SelectConstructor(() => new FakeNancyModule())); }