Esempio n. 1
0
 public QuestionService(
     IRepository <Question, Guid> questionRepository,
     IQuestionDao questionDao)
 {
     _questionRepository = questionRepository;
     _questionDao        = questionDao;
 }
Esempio n. 2
0
 //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();
 }
Esempio n. 3
0
 // 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;
 }
Esempio n. 5
0
 public Survey_QuestionDao()
 {
     _answerDao   = new AnswerDao();
     _questionDao = new QuestionDao(_answerDao);
 }
Esempio n. 6
0
 private HomeController(IQuestionDao questionDao)
 {
 }
Esempio n. 7
0
 private QuestionService()
 {
     _daoManager = ServiceConfig.GetInstance().DaoManager;
     _Dao        = (IQuestionDao)_daoManager.GetDao(typeof(IQuestionDao));
     _daoManager.SessionStore = new HybridWebThreadSessionStore(_daoManager.Id);
 }
Esempio n. 8
0
 public SearchableTextService(IQuestionDao questionDao)
 {
     _questionDao = questionDao;
 }