public QuestionService( IRepository <Question, Guid> questionRepository, IQuestionDao questionDao) { _questionRepository = questionRepository; _questionDao = questionDao; }
//constructeur de questions public QuestionController() { _questionDao = new QuestionDao(); // _categoryDao = new QuestionCategoryDao(); _difficultyDao = new QuestionDifficultyDao(); _questionTypeDao = new QuestionTypeDao(); _answerDao = new AnswerDao(); _survey_QuestionDao = new Survey_QuestionDao(); }
// Use this constructor for DI after private QuestionController(IQuestionDao questionDao, IQuestionCategoryDao questionCategoryDao, IQuestionDifficultyDao questionDifficultyDao, IQuestionTypeDao questionTypeDao, IAnswerDao answerDao, Survey_QuestionDao survey_QuestionDao) { _questionDao = questionDao; // _categoryDao = questionCategoryDao; _difficultyDao = questionDifficultyDao; _questionTypeDao = questionTypeDao; _answerDao = answerDao; _survey_QuestionDao = survey_QuestionDao; }
public QuestionLogic(IQuestionDao questionDao) { _questionDao = questionDao; }
public Survey_QuestionDao() { _answerDao = new AnswerDao(); _questionDao = new QuestionDao(_answerDao); }
private HomeController(IQuestionDao questionDao) { }
private QuestionService() { _daoManager = ServiceConfig.GetInstance().DaoManager; _Dao = (IQuestionDao)_daoManager.GetDao(typeof(IQuestionDao)); _daoManager.SessionStore = new HybridWebThreadSessionStore(_daoManager.Id); }
public SearchableTextService(IQuestionDao questionDao) { _questionDao = questionDao; }