Beispiel #1
0
        public static void ClassInit(TestContext context)
        {
            PersistenceHelper.UpdateDatabaseSchema();
            Bootstrapper.With.AutoMapper().And.StartupTasks().Start();

            service = new ProductService();
        }
Beispiel #2
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);

            PersistenceHelper.UpdateDatabaseSchema();


            ModelBinders.Binders[typeof(Version)] = new VersionModelBinder();

            Bootstrapper.With.AutoMapper().And.StartupTasks().Start();
            ControllerBuilder.Current.SetControllerFactory(new MefControllerFactory());
        }
 public static void ClassInit(TestContext context)
 {
     PersistenceHelper.Initialize();
     PersistenceHelper.UpdateDatabaseSchema();
 }