public CreateCommandHandler(IRepository <TDomain, TId> repository, IValidationEngine validationEngine, IEnumerable <IPermision <TDomain> > permisionSet, ICreateHandlerFactory <TCreateCommand, TDomain> creator, IEnumerable <ICommandPermision <TCreateCommand, TDomain> > commandPermisions, IEnumerable <ICommandAction <TCreateCommand, TDomain> > preCommitActions) { _repository = repository; _preCommitActions = preCommitActions; _commandPermisions = commandPermisions; _creator = creator.BuildCreator(); _permisionSet = permisionSet; _validationEngine = validationEngine; }
public InternalQuestionMetaService( ICreateCommandHandler <CreateNewQuestionMeta, QuestionMeta> createQuestionMeta, ICommandHandler <UpdateQuestionGlobalMeta> updateQuestionGlobalMeta, ICreateCommandHandler <CreateNewAnswerMeta, AnswerMeta> createAnswerMeta, ICommandHandler <UpdateAnswerGlobalMeta> updateAnswerGlobalMeta) { _createQuestionMeta = createQuestionMeta; _updateQuestionGlobalMeta = updateQuestionGlobalMeta; _createAnswerMeta = createAnswerMeta; _updateAnswerGlobalMeta = updateAnswerGlobalMeta; }
public TopicService( ICreateCommandHandler <CreateTopic, Topic> createTopic, ICommandHandler <UpdateTopic> updateTopic, ICommandHandler <DeleteTopic> deleteTopic, IQueryHandler <GetTopic, Topic> getTopic, IInternalSearchService searchService) { _createTopic = createTopic; _updateTopic = updateTopic; _deleteTopic = deleteTopic; _getTopic = getTopic; _searchService = searchService; }
public AnswerService( IQueryHandler <GetAnswer, Answer> getAnswer, IQueryHandler <GetAnswerGlobalMeta, AnswerGlobalMeta> getAnswerGlobalMeta, ICreateCommandHandler <CreateNewAnswer, Answer> createNewAnswer, ICommandHandler <UpdateAnswerMeta> updateAnswerMeta, ICommandHandler <UpdateAnswer> updateAnswer, IInternalQuestionMetaService internalMetaService) { _createNewAnswer = createNewAnswer; _getAnswer = getAnswer; _getAnswerGlobalMeta = getAnswerGlobalMeta; _updateAnswerMeta = updateAnswerMeta; _updateAnswer = updateAnswer; _internalMetaService = internalMetaService; }
public QuestionService(ICreateCommandHandler <CreateNewQuestion, Question> createNewQuestion, IQueryHandler <GetUserQuestions, IEnumerable <IQueryable <Question> > > getUserQuestions, IQueryHandler <GetQuestion, Question> getQuestion, IQueryHandler <GetQuestionGlobalMeta, QuestionGlobalMeta> getQuestionGlobalMeta, ICommandHandler <UpdateQuestion> updateQuestion, ICommandHandler <UpdateQuestionTopic> updateQuestionTopic, ICommandHandler <UpdateQuestionMeta> updateQuestionMeta, IInternalQuestionMetaService internalMetaService, ITopicService topicService) { _createNewQuestion = createNewQuestion; _getUserQuestions = getUserQuestions; _getQuestion = getQuestion; _updateQuestion = updateQuestion; _updateQuestionTopic = updateQuestionTopic; _updateQuestionMeta = updateQuestionMeta; _getQuestionGlobalMeta = getQuestionGlobalMeta; _internalMetaService = internalMetaService; _topicService = topicService; }
public TeamsController(ICreateCommandHandler createCommandHandler, IGetAllTeamsQuery getAllQuery, IGetTeamQuery getQuery) { _createCommandHandler = createCommandHandler ?? throw new ArgumentNullException(nameof(createCommandHandler)); _getAllQuery = getAllQuery ?? throw new ArgumentNullException(nameof(getAllQuery)); _getQuery = getQuery ?? throw new ArgumentNullException(nameof(getQuery)); }