protected void Application_Start() { AreaRegistration.RegisterAllAreas(); WebApiConfig.Register(GlobalConfiguration.Configuration); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); VoiceViewEngine.Register(ViewEngines.Engines); }
protected void Application_Start() { AreaRegistration.RegisterAllAreas(); RegisterGlobalFilters(GlobalFilters.Filters); RegisterRoutes(RouteTable.Routes); VoiceViewEngine.Register(ViewEngines.Engines); VoiceModel.Logger.LoggerFactory.GetStartUpTask().Configure(); }
protected void Application_Start() { AreaRegistration.RegisterAllAreas(); WebApiConfig.Register(GlobalConfiguration.Configuration); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); VoiceViewEngine.Register(ViewEngines.Engines); //Initialize database for test web application Database.SetInitializer <SurveyContext>(new DBInitializer()); SurveyContext context = new SurveyContext(); //Need to invoke context to have the DbInitializer do its stuff context.Surveys.Find(-1); }