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; }