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 }
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 }
//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; }
public QuestionGenerator(ICareUow uow) { //this.logic = logic; this.uow = uow; }
// // GET: /Account/Login public AccountController(ICareUow uow, Care.Domain.Abstract.IAuthentication auth) { this.uow = uow; this.auth = auth; }