コード例 #1
0
        public void FixtureSetUp()
        {
            BootStrapper.Bootstrap();

            SessionSource = ObjectFactory.GetInstance <ISessionSource>();
            SessionSource.BuildSchema();
        }
コード例 #2
0
        private void App_OnStartup(object sender, StartupEventArgs e)
        {
            var bootstrapper = new BootStrapper();
            var container    = bootstrapper.Bootstrap();
            var mainWindow   = container.Resolve <MainWindow>();

            mainWindow.Show();
        }
コード例 #3
0
        protected IntegrationTestBase()
        {
            BootStrapper.Bootstrap();

            var deleter = new DatabaseDeleter(ObjectFactory.GetInstance <ISessionFactory>());

            deleter.DeleteAllData();
            SessionSource = ObjectFactory.GetInstance <ISessionSource>();
        }
コード例 #4
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            RegisterGlobalFilters(GlobalFilters.Filters);
            RegisterRoutes(RouteTable.Routes);

            BootStrapper.Bootstrap();

            AutoMapperBootstrapper.Initialize();

            ControllerBuilder.Current.SetControllerFactory(new StructureMapControllerFactory());
        }
        public override void Initialize(string name, NameValueCollection config)
        {
            base.Initialize(name, config);
            lock (_syncObj)
            {
                var appName   = System.Web.Hosting.HostingEnvironment.ApplicationVirtualPath;
                var webConfig = WebConfigurationManager.OpenWebConfiguration(appName);
                Config = (SessionStateSection)webConfig.GetSection("system.web/sessionState");

                var bootStapper = new BootStrapper();
                bootStapper.Bootstrap(name, config, this);
            }
        }
コード例 #6
0
ファイル: Global.asax.cs プロジェクト: youare/presentations
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            RegisterGlobalFilters(GlobalFilters.Filters);
            RegisterRoutes(RouteTable.Routes);

            BootStrapper.Bootstrap();

            AutoMapperBootstrapper.Initialize();

            ControllerBuilder.Current.SetControllerFactory(new StructureMapControllerFactory());

            var dataLoader = ObjectFactory.GetInstance <IDummyDataLoader>();

            dataLoader.Load();
        }
コード例 #7
0
        public static void Start()
        {
            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            RouteConfig.RegisterRoutes(RouteTable.Routes);

            BundleConfig.RegisterBundles(BundleTable.Bundles);

            //XmlSiteMapController.RegisterRoutes(RouteTable.Routes);

            AppVersion.UpdateToLatestVersion(new Guid("{D435073A-231B-4a6f-9FC6-FD708FD263E7}"));
            AppVersion.UpdateToLatestVersion(new Guid("{4B543CC9-7A7B-4C9F-A43A-A514B9221248}"));

            BootStrapper.Bootstrap();

            ServiceFactory.GetInstance <ISiteConfigurationService>()
            .CacheConfigs();

            ControllerBuilder.Current.SetControllerFactory(new CoreFramework4.Mvc.StructureMapControllerFactory());
        }
コード例 #8
0
 protected void Bootstrap()
 {
     BootStrapper.Bootstrap();
 }