public PostService(IQuestionsElasticRepository questionsElasticRepository, IAnswerElasticRepository answerElasticRepository, IThreadRepository threadRepository, IPostsRepository postsRepository, IElasticSuggestionHelper elasticSuggestionHelper) { this.questionsElasticRepository = questionsElasticRepository; this.answerElasticRepository = answerElasticRepository; this.threadRepository = threadRepository; this.postsRepository = postsRepository; this.elasticSuggestionHelper = elasticSuggestionHelper; }
public ThreadService(IThreadRepository threadRepository, IQuestionsElasticRepository questionsElasticRepository, IPostsRepository postsRepository, IElasticSuggestionHelper elasticSuggestionHelper) { this.threadRepository = threadRepository; this.questionsElasticRepository = questionsElasticRepository; this.postsRepository = postsRepository; this.elasticSuggestionHelper = elasticSuggestionHelper; }