示例#1
0
        public HomeController(
            IStringLocalizer stringLocalizer,
            IHtmlLocalizer localizer,
            IEntityReplyStore <IdeaComment> entityReplyStore,
            IEntityHistoryManager <EntityHistory> entityHistoryManager,
            IEntityHistoryStore <EntityHistory> entityHistoryStore,
            IEntityReplyManager <IdeaComment> entityReplyManager,
            IAuthorizationService authorizationService,
            IInlineDiffBuilder inlineDiffBuilder,
            IEntityManager <Idea> entityManager,
            IEntityStore <Idea> entityStore,
            IContextFacade contextFacade,
            IAlerter alerter)
        {
            _entityHistoryManager = entityHistoryManager;
            _authorizationService = authorizationService;
            _entityReplyManager   = entityReplyManager;
            _entityHistoryStore   = entityHistoryStore;
            _inlineDiffBuilder    = inlineDiffBuilder;
            _entityReplyStore     = entityReplyStore;
            _contextFacade        = contextFacade;
            _entityManager        = entityManager;
            _entityStore          = entityStore;
            _alerter = alerter;

            T = localizer;
            S = stringLocalizer;
        }
示例#2
0
 protected override void PreInitialize()
 {
     base.PreInitialize();
     _entityHistoryStore = Substitute.For <IEntityHistoryStore>();
     LocalIocManager.IocContainer.Register(
         Component.For <IEntityHistoryStore>().Instance(_entityHistoryStore).LifestyleSingleton()
         );
 }
示例#3
0
 public EntityHistoryManager(
     IEntityHistoryStore <EntityHistory> entityHistoryStore,
     IContextFacade contextFacade,
     IBroker broker)
 {
     _entityHistoryStore = entityHistoryStore;
     _contextFacade      = contextFacade;
     _broker             = broker;
 }
示例#4
0
 public EntitySubscriber(
     IEntityHistoryManager <EntityHistory> entityHistoryManager,
     IEntityHistoryStore <EntityHistory> entityHistoryStore,
     IEntityStore <TEntity> entityStore,
     IBroker broker)
 {
     _entityHistoryManager = entityHistoryManager;
     _entityHistoryStore   = entityHistoryStore;
     _entityStore          = entityStore;
     _broker = broker;
 }
示例#5
0
 public EntityReplySubscriber(
     IBroker broker,
     IEntityHistoryStore <EntityHistory> entityHistoryStore,
     IEntityHistoryManager <EntityHistory> entityHistoryManager,
     IEntityReplyStore <EntityReply> entityReplyStore)
 {
     _broker               = broker;
     _entityHistoryStore   = entityHistoryStore;
     _entityHistoryManager = entityHistoryManager;
     _entityReplyStore     = entityReplyStore;
 }
示例#6
0
        public EntityController(
            IHtmlLocalizer htmlLocalizer,
            IStringLocalizer stringLocalizer,
            IEntityHistoryStore <EntityHistory> entityHistoryStore,
            IContextFacade contextFacade)
        {
            _entityHistoryStore = entityHistoryStore;
            _contextFacade      = contextFacade;

            T = htmlLocalizer;
            S = stringLocalizer;
        }
        protected EntityHistoryHelperBase(
            IEntityHistoryConfiguration entityHistoryConfiguration,
            IUnitOfWorkManager unitOfWorkManager)
        {
            EntityHistoryConfiguration = entityHistoryConfiguration;
            UnitOfWorkManager          = unitOfWorkManager;

            AbpSession                    = NullAbpSession.Instance;
            Logger                        = NullLogger.Instance;
            ClientInfoProvider            = NullClientInfoProvider.Instance;
            EntityChangeSetReasonProvider = NullEntityChangeSetReasonProvider.Instance;
            EntityHistoryStore            = NullEntityHistoryStore.Instance;
        }