/// <summary> /// Initializes a new instance of the <see cref="QuestionController"/> class. /// </summary> /// <param name="queryQuestion">Question repository.</param> /// <param name="queryTemplateCatalog">Template catalog repository.</param> public QuestionController( IQuestionQueryRepository questionQueryRepository, ICommandRepository <Question> commandRepository, IQueryRepository <Template, string> templateQueryRepository ) { this.questionQueryRepository = questionQueryRepository; this.commandRepository = commandRepository; this.templateQueryRepository = templateQueryRepository; }
/// <summary> /// Initializes a new instance of the <see cref="QueryTemplateController"/> class. /// </summary> /// <param name="querySkillMatrixCatalog">The query skill matrix catalog.</param> /// <param name="queryTemplateCatalog">The query template catalog.</param> public QueryTemplateController( ISkillMatrixQueryRepository querySkillMatrixCatalog, IQueryRepository <Template, string> queryTemplateCatalog, IJobFunctionQueryRepository queryJobFunction, ICompetencyQueryRepository queryCompetency, IQuestionQueryRepository questionQueryRepository, IExerciseQueryRepository exerciseQueryRepository) { this.queryTemplateCatalog = queryTemplateCatalog; this.querySkillMatrixCatalog = querySkillMatrixCatalog; this.queryJobFunction = queryJobFunction; this.queryCompetency = queryCompetency; this.questionQueryRepository = questionQueryRepository; this.exerciseQueryRepository = exerciseQueryRepository; }