public QuestionsController(ICommandBus commandBus, IQuestionManager questionManager) { _commandBus = commandBus; _questionManager = questionManager; _questionMapper = new QuestionToQuestionMapper(); }
public QuestionManager(ICategoryRepositoryAsync categoryRepo, IQuestionRepositoryAsync questionRepo) { _categoryRepo = categoryRepo; _questionRepo = questionRepo; _categoryMapper = new CategoryToCategoryMapper(); _questionMapper = new QuestionToQuestionMapper(); }
public CategoriesController(ICategoryManager categoryManager, ICommandBus commandBus, ILogger logger) { _categoryManager = categoryManager; _categoryMapper = new CategoryToCategoryMapper(); _questionMapper = new QuestionToQuestionMapper(); _commandBus = commandBus; _logger = logger; }