Esempio n. 1
0
 public Question GetNextQuestion(Test test, Question prevQuestion, ITestLogic logic)
 {
     this.logic = logic;
     int qId = logic.GetQuestionId(test, prevQuestion, uow);
     Question q = uow.Questions.GetById(qId);
     return q;
 }
Esempio n. 2
0
        public Question GetNextQuestion(Test test, Question prevQuestion, ITestLogic logic)
        {
            this.logic = logic;
            int      qId = logic.GetQuestionId(test, prevQuestion, uow);
            Question q   = uow.Questions.GetById(qId);

            return(q);
        }
Esempio n. 3
0
        public Question GetNextQuestion(Question prevQuestion, Answer prevAnswer)
        {
            int      qId = logic.GetQuestionId(prevQuestion, prevAnswer);
            Question q   = new Question();

            q.Id = qId;
            return(q);
        }
Esempio n. 4
0
        public Question GetNextQuestion(Test test, Question prevQuestion)
        {
            if (test.Type != null)
            {
                //this.tLogic = logic;
                tLogic = this.factory.CreateTestLogicInstance(test.Type);
                int qId = tLogic.GetQuestionId(test, prevQuestion, uow);
                Question q = uow.Questions.GetById(qId);
                return q;
            }

            return null;
        }
Esempio n. 5
0
        public Question GetNextQuestion(Test test, Question prevQuestion)
        {
            if (test.Type != null)
            {
                //this.tLogic = logic;
                tLogic = this.factory.CreateTestLogicInstance(test.Type);
                int      qId = tLogic.GetQuestionId(test, prevQuestion, uow);
                Question q   = uow.Questions.GetById(qId);
                return(q);
            }

            return(null);
        }