public QuizQuestionAdminInactiveAction(
     IQuizQuestionRepository QuizQuestionRepository,
     IUnitOfWork unitOfWork)
 {
     _quizQuestionRepository = QuizQuestionRepository;
     _unitOfWork             = unitOfWork;
 }
 public QuizQuestionAdminDeleteAction(
     IQuizQuestionRepository quizQuestionRepository,
     IUnitOfWork unitOfWork)
 {
     _quizQuestionRepository = quizQuestionRepository;
     _unitOfWork             = unitOfWork;
 }
 public QuizService(IModelFactory modelFactory, IQuizRepository quizRepository, IQuizQuestionRepository quizQuestionRepository,
                    IQuestionRepository questionRepository, ICourseRepository courseRepository, IQuizPagesRepository quizPagesRepository)
 {
     _modelFactory           = modelFactory;
     _quizRepository         = quizRepository;
     _quizQuestionRepository = quizQuestionRepository;
     _questionRepository     = questionRepository;
     _courseRepository       = courseRepository;
     _quizPagesRepository    = quizPagesRepository;
 }
 public QuizService(IModelFactory modelFactory, IQuizRepository quizRepository, IQuizQuestionRepository quizQuestionRepository,
     IQuestionRepository questionRepository, ICourseRepository courseRepository, IQuizPagesRepository quizPagesRepository)
 {
     _modelFactory = modelFactory;
     _quizRepository = quizRepository;
     _quizQuestionRepository = quizQuestionRepository;
     _questionRepository = questionRepository;
     _courseRepository = courseRepository;
     _quizPagesRepository = quizPagesRepository;
 }
Exemplo n.º 5
0
 public QuizQuestionAdminService(
     IQuizQuestionRepository quizQuestionRepository,
     QuizQuestionAdminActionFactory actionFactory,
     QuizQuestionCreateAdminValidator validatorCreate,
     QuizQuestionEditAdminValidator validatorEdit,
     IUnitOfWork unitOfWork)
 {
     _quizQuestionRepository = quizQuestionRepository;
     _actionFactory          = actionFactory;
     _validatorCreate        = validatorCreate;
     _validatorEdit          = validatorEdit;
     _unitOfWork             = unitOfWork;
     QuizQuestionAdminMapper.Init();
 }
Exemplo n.º 6
0
 public QuizCrudViewModel(IQuizRepository quizRepository, IQuestionRepository questionRepository,
     IQuizQuestionRepository quizQuestionRepository)
 {
     if (quizRepository == null)
         throw new ArgumentNullException(nameof(quizRepository));
     if (questionRepository == null)
         throw new ArgumentNullException(nameof(questionRepository));
     if (quizQuestionRepository == null)
         throw new ArgumentNullException(nameof(quizQuestionRepository));
     _quizRepository = quizRepository;
     _questionRepository = questionRepository;
     _quizQuestionRepository = quizQuestionRepository;
     Initialize();
 }
Exemplo n.º 7
0
 public MemberQuizService(
     IMemberRepository memberRepository,
     IMemberResultRepository memberResultRepository,
     IMemberQuizAnswerRepository memberQuizAnswerRepository,
     IQuizQuestionRepository quizQuestionRepository,
     IQuizAnswerRepository quizAnswerRepository,
     IUnitOfWork unitOfWork,
     IQuizRepository quizRepository,
     IMemberQuizAnswerOptionsRepository memberQuizAnswerOptionsRepository,
     IGeneralSettingService generalSettingService,
     MemberEditProfileValidator memberEditProfileValidator)
 {
     _memberRepository = memberRepository;
     _quizRepository   = quizRepository;
     _memberQuizAnswerOptionsRepository = memberQuizAnswerOptionsRepository;
     _generalSettingService             = generalSettingService;
     _memberQuizAnswerRepository        = memberQuizAnswerRepository;
     _memberResultRepository            = memberResultRepository;
     _quizQuestionRepository            = quizQuestionRepository;
     _quizAnswerRepository       = quizAnswerRepository;
     _unitOfWork                 = unitOfWork;
     _memberEditProfileValidator = memberEditProfileValidator;
 }
Exemplo n.º 8
0
 public QuizQuestionService(IQuizQuestionRepository quizQuestionRepository, IQuizAnswerRepository quizAnswerRepository)
 {
     _quizQuestionRepository = quizQuestionRepository;
     _quizAnswerRepository   = quizAnswerRepository;
 }
 public QuizQuestionController()
 {
     _quizQuestionRepository = new QuizQuestionRepository();
     _quizRepository         = new QuizRepository();
 }
Exemplo n.º 10
0
 public QuizQuestionController(IQuizQuestionRepository qqRepo)
 {
     QQRepo = qqRepo;
 }
Exemplo n.º 11
0
 public QuizQuestionService(IQuizQuestionRepository quizQuestionRepository)
 {
     this.quizQuestionRepository = quizQuestionRepository;
 }
Exemplo n.º 12
0
 public QuizController(IQuizQuestionRepository QuizQuestionRepo, IQuizRepository QuizRepo)
 {
     _quizRepository         = QuizRepo;
     _quizQuestionRepository = QuizQuestionRepo;
 }
Exemplo n.º 13
0
 public QuizQuestionService(IQuizQuestionRepository quizQuestionRepository, IValidationDictionary validationDictionary)
 {
     QuizQuestionRepository = quizQuestionRepository;
     ValidationDictionary   = validationDictionary;
     RandomGenerator        = new Random();
 }