protected void InitializeAbp()
        {
            LocalIocManager.RegisterIfNot <IAbpSession, TestAbpSession>();

            PreInitialize();

            AbpBootstrapper.Initialize();

            PostInitialize();

            AbpSession = LocalIocManager.Resolve <TestAbpSession>();
        }
示例#2
0
        protected void InitializeStudioX()
        {
            LocalIocManager.RegisterIfNot <IStudioXSession, TestStudioXSession>();

            PreInitialize();

            StudioXBootstrapper.Initialize();

            PostInitialize();

            StudioXSession = LocalIocManager.Resolve <TestStudioXSession>();
        }
示例#3
0
        protected void InitializeSharePlatform()
        {
            LocalIocManager.RegisterIfNot <ISharePlatformSession, TestSharePlatformSession>();

            PreInitialize();

            SharePlatformBootstrapper.Initialize();

            PostInitialize();

            SharePlatformSession = LocalIocManager.Resolve <TestSharePlatformSession>();
        }
        protected void InitializeMajid()
        {
            LocalIocManager.RegisterIfNot <IMajidSession, TestMajidSession>();

            PreInitialize();

            MajidBootstrapper.Initialize();

            PostInitialize();

            MajidSession = LocalIocManager.Resolve <TestMajidSession>();
        }
        protected override void PreInitialize()
        {
            base.PreInitialize();

            //Fake DbConnection using Effort!
            LocalIocManager.IocContainer.Register(
                Component.For <DbConnection>()
                .UsingFactoryMethod(Effort.DbConnectionFactory.CreateTransient)
                .LifestyleSingleton()
                );

            LocalIocManager.Register <IAbpRedisConnectionProvider, AbpRedisConnectionProvider>();
            LocalIocManager.RegisterIfNot <AbpRedisCacheConfig>();
            LocalIocManager.Register <ICacheSyncService, TestCacheSyncService>();
        }