public HistoryController(ICommandBus commandBus, IAppProvider appProvider, IHistoryEventRepository historyEventRepository)
            : base(commandBus)
        {
            this.appProvider = appProvider;

            this.historyEventRepository = historyEventRepository;
        }
Exemple #2
0
        public HistoryService(IHistoryEventRepository repository, IEnumerable <IHistoryEventsCreator> creators)
        {
            Guard.NotNull(repository);
            Guard.NotNull(creators);

            this.creators = creators.ToList();

            foreach (var creator in this.creators)
            {
                foreach (var text in creator.Texts)
                {
                    texts[text.Key] = text.Value;
                }
            }

            this.repository = repository;
        }
Exemple #3
0
        public HistoryService(IHistoryEventRepository repository, IEnumerable <IHistoryEventsCreator> creators)
        {
            Guard.NotNull(repository, nameof(repository));
            Guard.NotNull(creators, nameof(creators));

            this.creators = creators.ToList();

            foreach (var creator in this.creators)
            {
                foreach (var(key, value) in creator.Texts)
                {
                    texts[key] = value;
                }
            }

            this.repository = repository;
        }
Exemple #4
0
 public HistoryController(ICommandBus commandBus, IHistoryEventRepository historyEventRepository)
     : base(commandBus)
 {
     this.historyEventRepository = historyEventRepository;
 }
 public HistoryEventServiceClass(IHistoryEventRepository historyEventRepository, IPersonEventRelationRepository personEventRelationRepository)
 {
     this.historyEventRepository        = historyEventRepository;
     this.personEventRelationRepository = personEventRelationRepository;
 }
Exemple #6
0
 public CumulativeFlowDiagramHelper(ITaskItemRepository taskItemRepository, IHistoryEventRepository historyEventRepository)
 {
     this.taskItemRepository     = taskItemRepository;
     this.historyEventRepository = historyEventRepository;
 }
Exemple #7
0
 public CumulativeFlowDiagramHelper()
 {
     taskItemRepository     = new TaskItemRepository();
     historyEventRepository = new HistoryEventRepository();
 }