Пример #1
0
        void ReCreateDispatcherWithConfig(HostSection config)
        {
            dispatcher = new RequestPathProvider(webContext, parser, errorHandler, config);

            handler = new FakeRequestLifeCycleHandler(webContext, dispatcher, adapterProvider, errorHandler,
                                                      new ConfigurationManagerWrapper {
                Sections = new ConfigurationManagerWrapper.ContentSectionTable(config, null, null, new EditSection())
            });
        }
        void ReCreateDispatcherWithConfig(HostSection config)
        {
            IPersister persister = null;

            dispatcher = new RequestPathProvider(webContext, parser, errorHandler, config, TestSupport.CreateDraftRepository(ref persister));

            handler = new FakeRequestLifeCycleHandler(webContext, dispatcher, adapterProvider, errorHandler,
                                                      new ConfigurationManagerWrapper {
                Sections = new ConfigurationManagerWrapper.ContentSectionTable(config, null, null, new EditSection())
            });
        }
Пример #3
0
 void ReCreateDispatcherWithConfig(HostSection config)
 {
     dispatcher = new RequestPathProvider(webContext, parser, errorHandler, config);
     handler    = new FakeRequestLifeCycleHandler(webContext, null, dispatcher, adapterProvider, errorHandler, editUrlManager, new EditSection(), config);
 }