Beispiel #1
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);

            FluentValidationModelValidatorProvider.Configure();
            IUnityContainer container = new UnityContainer();

            UnityRegistrar.Register(container);

            AutoMapperInitializer.Initialise();

            ControllerBuilder.Current.SetControllerFactory(new UnityControllerFactory(container));
            DummyDataCreator.PopulateRepository();
        }