コード例 #1
0
        public override void Initialize()
        {
            base.Initialize();

            SettingsForTests.UmbracoPath = "~/umbraco";

            var webBoot = new WebBootManager(new UmbracoApplication(), true);

            //webBoot.Initialize();
            //webBoot.Startup(null); -> don't call startup, we don't want any other application event handlers to bind for this test.
            //webBoot.Complete(null);
            webBoot.CreateRoutes();
        }
コード例 #2
0
        public override void Initialize()
        {
            base.Initialize();
            System.Configuration.ConfigurationManager.AppSettings.Set("umbracoPath", "~/umbraco");

            SurfaceControllerResolver.Current = new SurfaceControllerResolver(
                PluginManager.Current.ResolveSurfaceControllers());

            var webBoot = new WebBootManager(new UmbracoApplication(), true);

            //webBoot.Initialize();
            //webBoot.Startup(null); -> don't call startup, we don't want any other application event handlers to bind for this test.
            //webBoot.Complete(null);
            webBoot.CreateRoutes();
        }
コード例 #3
0
        public override void Initialize()
        {
            //this ensures its reset
            PluginManager.Current = new PluginManager();

            SurfaceControllerResolver.Current = new SurfaceControllerResolver(
                PluginManager.Current.ResolveSurfaceControllers());

            base.Initialize();

            SettingsForTests.UmbracoPath = "~/umbraco";

            var webBoot = new WebBootManager(new UmbracoApplication(), true);

            //webBoot.Initialize();
            //webBoot.Startup(null); -> don't call startup, we don't want any other application event handlers to bind for this test.
            //webBoot.Complete(null);
            webBoot.CreateRoutes();
        }