Example #1
0
        public static void Init()
        {
            IWindsorContainer container = new WindsorContainer();

            ComponentRegistrar.AddComponentsTo(container);
            NHibernateProfiler.Initialize();
            ServiceLocator.SetLocatorProvider(() => new WindsorServiceLocator(container));
        }
Example #2
0
        public static void Init(Type transactionManagerType)
        {
            IWindsorContainer container = new WindsorContainer();

            ComponentRegistrar.AddComponentsTo(container, transactionManagerType);
            RegisterTestServices(container);
            ServiceLocator.SetLocatorProvider(() => new WindsorServiceLocator(container));
        }