public LanguageAppService_Tests()
        {
            LoginAsHostAdmin();

            _languageAppService = Resolve<ILanguageAppService>();
            _languageManager = Resolve<IApplicationLanguageManager>();
        }
Example #2
0
 public LanguageAppService(
     IApplicationLanguageManager applicationLanguageManager,
     IApplicationLanguageTextManager applicationLanguageTextManager,
     IRepository <ApplicationLanguage> languageRepository)
 {
     _applicationLanguageManager     = applicationLanguageManager;
     _languageRepository             = languageRepository;
     _applicationLanguageTextManager = applicationLanguageTextManager;
 }
Example #3
0
 public LanguageAppService(
     IApplicationLanguageManager applicationLanguageManager,
     IApplicationLanguageTextManager applicationLanguageTextManager,
     IRepository<ApplicationLanguage> languageRepository)
 {
     _applicationLanguageManager = applicationLanguageManager;
     _languageRepository = languageRepository;
     _applicationLanguageTextManager = applicationLanguageTextManager;
 }
 /// <summary>
 ///     构造函数
 /// </summary>
 public LanguageAppService(
     IRepository <ApplicationLanguage> languageRepository,
     IApplicationLanguageManager languageManager,
     IApplicationLanguageTextManager languageTextManager
     )
 {
     _languageRepository  = languageRepository;
     _languageManager     = languageManager;
     _languageTextManager = languageTextManager;
 }
Example #5
0
 public LanguageAppService(
     IApplicationLanguageManager applicationLanguageManager,
     IApplicationLanguageTextManager applicationLanguageTextManager,
     IRepository <ApplicationLanguage> languageRepository,
     ICacheManager cacheManager)
 {
     this.applicationLanguageManager     = applicationLanguageManager;
     this.languageRepository             = languageRepository;
     this.applicationLanguageTextManager = applicationLanguageTextManager;
     this.cacheManager = cacheManager;
 }
Example #6
0
 public LanguageAppService(IApplicationLanguageManager applicationLanguageManager,
                           IRepository <ApplicationLanguageText, long> languageTextsRepository,
                           IRepository <ApplicationLanguage> languagesRepository,
                           ILanguageTextsProvider languageTextsProvider,
                           IApplicationLanguageTextManager applicationLanguageTextManager, ILanguagesAppNotificationSender languagesAppNotificationSender)
 {
     _applicationLanguageManager     = applicationLanguageManager;
     _languageTextsRepository        = languageTextsRepository;
     _languagesRepository            = languagesRepository;
     _languageTextsProvider          = languageTextsProvider;
     _applicationLanguageTextManager = applicationLanguageTextManager;
     _languagesAppNotificationSender = languagesAppNotificationSender;
 }
        public LanguageAppService_Tests()
        {
            if (TradeConsts.MultiTenancyEnabled)
            {
                LoginAsHostAdmin();
            }
            else
            {
                LoginAsDefaultTenantAdmin();
            }

            _languageAppService = Resolve <ILanguageAppService>();
            _languageManager    = Resolve <IApplicationLanguageManager>();
        }
        //private readonly bool _multiTenancyEnabled = AppConsts.MultiTenancyEnabled;

        public LanguageAppService_Tests()
        {
            //if (_multiTenancyEnabled)
            //{
            //    LoginAsHostAdmin();
            //}
            //else
            //{
            //    LoginAsDefaultTenantAdmin();
            //}

            _languageAppService = Resolve <ILanguageAppService>();
            _languageManager    = Resolve <IApplicationLanguageManager>();
        }
Example #9
0
 public PagesService(IPageManager pageManager,
                     IRepository <Page> pageRepository,
                     IRepository <Content> contentRepository,
                     IApplicationLanguageManager applicationLanguageManager,
                     ITemplateManager templateManager,
                     IRepository <Category> categoryRepository,
                     IRepository <DatabaseEntities.Pages.Entities.Chunk> chunkRepository, IFileStoreManager fileStoreManager)
 {
     _pageManager                = pageManager;
     _pageRepository             = pageRepository;
     _contentRepository          = contentRepository;
     _applicationLanguageManager = applicationLanguageManager;
     _templateManager            = templateManager;
     _categoryRepository         = categoryRepository;
     _chunkRepository            = chunkRepository;
     _fileStoreManager           = fileStoreManager;
     EventBus = NullEventBus.Instance;
 }
        /// <summary>
        /// Constructor.
        /// </summary>
        public ApplicationLanguageProvider(IApplicationLanguageManager applicationLanguageManager)
        {
            _applicationLanguageManager = applicationLanguageManager;

            AbpSession = NullAbpSession.Instance;
        }
        /// <summary>
        /// Constructor.
        /// </summary>
        public ApplicationLanguageProvider(IApplicationLanguageManager applicationLanguageManager)
        {
            _applicationLanguageManager = applicationLanguageManager;

            Session = NullInfrastructureSession.Instance;
        }
Example #12
0
 public CategoryService(IRepository <Category> categoryRepository, IRepository <CategoryContent> categoryContentRepository, IApplicationLanguageManager applicationLanguageManager, ICategoryManager categoryManager)
 {
     _categoryRepository         = categoryRepository;
     _categoryContentRepository  = categoryContentRepository;
     _applicationLanguageManager = applicationLanguageManager;
     _categoryManager            = categoryManager;
     EventBus = NullEventBus.Instance;
 }
Example #13
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public ApplicationLanguageProvider(IApplicationLanguageManager applicationLanguageManager)
        {
            _applicationLanguageManager = applicationLanguageManager;

            CodeZeroSession = NullCodeZeroSession.Instance;
        }
        /// <summary>
        /// Constructor.
        /// </summary>
        public ApplicationLanguageProvider(IApplicationLanguageManager applicationLanguageManager)
        {
            this.applicationLanguageManager = applicationLanguageManager;

            StudioXSession = NullStudioXSession.Instance;
        }
        /// <summary>
        /// Constructor.
        /// </summary>
        public ApplicationLanguageProvider(IApplicationLanguageManager applicationLanguageManager)
        {
            _applicationLanguageManager = applicationLanguageManager;

            AbpSession = NullAbpSession.Instance;
        }
 public ApplicationLanguageManager_Tests()
 {
     _defaultTenant = GetDefaultTenant();
     _languageManager = Resolve<IApplicationLanguageManager>();
 }
 public ApplicationLanguageManager_Tests()
 {
     _defaultTenant   = GetDefaultTenant();
     _languageManager = Resolve <IApplicationLanguageManager>();
     _applicationLanguageRepository = Resolve <IRepository <ApplicationLanguage> >();
 }
 public ApplicationLanguageManager_Tests()
 {
     _defaultTenant   = GetDefaultTenant();
     _languageManager = Resolve <IApplicationLanguageManager>();
 }
Example #19
0
 public LangManager(IApplicationLanguageManager languageManager)
 {
     _languageManager     = languageManager;
     _applicationLanguage = applicationLanguage;
 }