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