public void FixtureSetUp() { BootStrapper.Bootstrap(); SessionSource = ObjectFactory.GetInstance <ISessionSource>(); SessionSource.BuildSchema(); }
private void App_OnStartup(object sender, StartupEventArgs e) { var bootstrapper = new BootStrapper(); var container = bootstrapper.Bootstrap(); var mainWindow = container.Resolve <MainWindow>(); mainWindow.Show(); }
protected IntegrationTestBase() { BootStrapper.Bootstrap(); var deleter = new DatabaseDeleter(ObjectFactory.GetInstance <ISessionFactory>()); deleter.DeleteAllData(); SessionSource = ObjectFactory.GetInstance <ISessionSource>(); }
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); } }
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(); }
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()); }
protected void Bootstrap() { BootStrapper.Bootstrap(); }