Example #1
0
 public int GetQuestionId(Test test, Question prevQuestion, ICareUow uow)
 {
     if (prevQuestion == null)
     {
         return 35;
     }
     int newQuestionId = prevQuestion.Id + 1;
     return newQuestionId;  //TODO actually implement the logic
 }
Example #2
0
        public int GetQuestionId(Test test, Question prevQuestion, ICareUow uow)
        {
            if (prevQuestion == null)
            {
                return(35);
            }
            int newQuestionId = prevQuestion.Id + 1;

            return(newQuestionId);  //TODO actually implement the logic
        }
Example #3
0
 //public TestService(ICareUow uow, TestLogicFactory factory, IQuestionGenerator questionGenerator)
 public TestService(ICareUow uow, TestLogicFactory factory)
 {
     if (uow == null || factory == null)
     {
         throw new ArgumentNullException("uow or factory");
     }
     //this.qGen = questionGenerator;
     this.factory = factory;
     this.uow = uow;
     //this.tLogic = tLogic;
 }
Example #4
0
 //public TestService(ICareUow uow, TestLogicFactory factory, IQuestionGenerator questionGenerator)
 public TestService(ICareUow uow, TestLogicFactory factory)
 {
     if (uow == null || factory == null)
     {
         throw new ArgumentNullException("uow or factory");
     }
     //this.qGen = questionGenerator;
     this.factory = factory;
     this.uow     = uow;
     //this.tLogic = tLogic;
 }
Example #5
0
 public QuestionGenerator(ICareUow uow)
 {
     //this.logic = logic;
     this.uow = uow;
 }
Example #6
0
 public QuestionGenerator(ICareUow uow)
 {
     //this.logic = logic;
     this.uow = uow;
 }
Example #7
0
 //
 // GET: /Account/Login
 public AccountController(ICareUow uow, Care.Domain.Abstract.IAuthentication auth)
 {
     this.uow  = uow;
     this.auth = auth;
 }