Ejemplo n.º 1
0
 public ExamsController(IExamRepository examRepository, IAnswerRepository answerRepository, IStatistics statistics, AppConfig config)
 {
     this.examRepository   = examRepository;
     this.answerRepository = answerRepository;
     this.config           = config;
     this.statistics       = statistics;
 }
 public ExamController(IExamRepository iExamRepository, IGradeRepository iGradeRepository, ICourseRepository iCourseRepository, IUser iUser)
 {
     this._iExamRepository   = iExamRepository;
     this._iGradeRepository  = iGradeRepository;
     this._iCourseRepository = iCourseRepository;
     GID = (iUser.GetClaimValueByType("GID").FirstOrDefault()).ObjToInt();
 }
Ejemplo n.º 3
0
 public MongoOperations(
     IBranchRepository branchRepository,
     ICertificateRepository certificateRepository,
     ICompanyRepository companyRepository,
     ICourseRepository courseRepository,
     IDegreeRepository degreeRepository,
     IExamRepository examRepository,
     IExamTermRepository examTermRepository,
     IExamResultRepository examResultRepository,
     IGivenCertificateRepository givenCertificateRepository,
     IGivenDegreeRepository givenDegreeRepository,
     IPersonalLogRepository personalLogRepository,
     IMeetingRepository meetingRepository,
     IUserRepository userRepository)
 {
     this.branchRepository           = branchRepository;
     this.certificateRepository      = certificateRepository;
     this.companyRepository          = companyRepository;
     this.courseRepository           = courseRepository;
     this.degreeRepository           = degreeRepository;
     this.examRepository             = examRepository;
     this.examTermRepository         = examTermRepository;
     this.examResultRepository       = examResultRepository;
     this.givenCertificateRepository = givenCertificateRepository;
     this.givenDegreeRepository      = givenDegreeRepository;
     this.personalLogRepository      = personalLogRepository;
     this.meetingRepository          = meetingRepository;
     this.userRepository             = userRepository;
 }
Ejemplo n.º 4
0
 public ExamService(INotificator notificator,
                    IExamRepository examRepository,
                    IUnitOfWork unitOfWork) : base(notificator)
 {
     _examRepository = examRepository;
     _unitOfWork     = unitOfWork;
 }
Ejemplo n.º 5
0
 public GradeService(IGradeRepository gradeRepository, IExamRepository examRepository,
                     IStudentRepository studentRepository)
 {
     _gradeRepository   = gradeRepository;
     _examRepository    = examRepository;
     _studentRepository = studentRepository;
 }
Ejemplo n.º 6
0
 public ExamController(IExamRepository exam, IQuestionRepository question,
                       IUserRepository user)
 {
     _exam     = exam;
     _question = question;
     _user     = user;
 }
Ejemplo n.º 7
0
 public SearchController(IUserRepository user, IQuestionRepository question,
                         IExamRepository exam, ICategoryRepository cate)
 {
     _user     = user;
     _exam     = exam;
     _question = question;
     _cate     = cate;
 }
Ejemplo n.º 8
0
 public BankService(IQuestionRepository questionRepository, IExamRepository examRepository, IExamService examService, IBankRepository bankRepository, IAnswerRepository answerRepository)
 {
     this.questionRepository = questionRepository;
     this.examRepository     = examRepository;
     this.examService        = examService;
     this.bankRepository     = bankRepository;
     this.answerRepository   = answerRepository;
 }
 public ManagingSchoolService()
 {
     schoolRepository  = new SchoolRepository();
     townRepository    = new TownRepository();
     villageRepository = new VillageRepository();
     departmentOfEducationAndTrainingRepository = new DepartmentOfEducationAndTrainingRepository();
     examRepository = new ExamRepository();
 }
Ejemplo n.º 10
0
 public StatisticService(IScoreService scoreService, IReviewService reviewService, IExamService examService, IScoreRepository scoreRepository, IExamRepository examRepository, IUserRepository userRepository)
 {
     this.scoreService    = scoreService;
     this.reviewService   = reviewService;
     this.examService     = examService;
     this.scoreRepository = scoreRepository;
     this.examRepository  = examRepository;
     this.userRepository  = userRepository;
 }
Ejemplo n.º 11
0
 public ExamController(IAccountExamRepository accountExamRepository, IExamRepository examRepository, IGroupMemberRepository groupMemberRepository, IGroupRepository groupRepository, IGroupOwnerRepository groupOwnerRepository)
 {
     _accountExamRepository = accountExamRepository;
     _groupRepository       = groupRepository;
     _groupMemberRepository = groupMemberRepository;
     _examRepository        = examRepository;
     _groupOwnerRepository  = groupOwnerRepository;
     Log4Net.InitLog();
 }
Ejemplo n.º 12
0
 public HistoryController(IHistoryRepository historyRepository, IAccountRepository accountRepository,
                          IExamRepository examRepository, IGroupRepository groupRepository)
 {
     _historyRepository = historyRepository;
     _accountRepository = accountRepository;
     _examRepository    = examRepository;
     _groupRepository   = groupRepository;
     Log4Net.InitLog();
 }
Ejemplo n.º 13
0
 public AdminController(IExamRepository examRepository, IUserRepository userRepository, IAnswerRepository answerRepository, IAuthority authority, IStatistics statistics, AppConfig config)
 {
     this.userRepository   = userRepository;
     this.answerRepository = answerRepository;
     this.examRepository   = examRepository;
     this.authority        = authority;
     this.statistics       = statistics;
     this.config           = config;
 }
Ejemplo n.º 14
0
 public ExamineeService(IAnswerRepository answerRepository, IQuestionRepository questionRepository, IExamRepository examRepository, IExamService examService, IScoreRepository socreRepository, IBankService bankService)
 {
     this.answerRepository   = answerRepository;
     this.questionRepository = questionRepository;
     this.examRepository     = examRepository;
     this.examService        = examService;
     this.scoreRepository    = socreRepository;
     this.bankService        = bankService;
 }
Ejemplo n.º 15
0
 public ExamController(IQuestionRepository questionRepository, IAnswerRepository answerRepository, IExamRepository examRepository, IBankRepository bankRepository, IExamService examService, IExamineeService examineeService)
 {
     this.questionRepository = questionRepository;
     this.answerRepository   = answerRepository;
     this.examRepository     = examRepository;
     this.bankRepository     = bankRepository;
     this.examService        = examService;
     this.examineeService    = examineeService;
 }
Ejemplo n.º 16
0
 public ExamManager(
     IExamRepository examRepository,
     ISectionRepository sectionRepository,
     IQuestionRepository questionRepository
     )
 {
     _examRepository     = examRepository;
     _sectionRepository  = sectionRepository;
     _questionRepository = questionRepository;
 }
Ejemplo n.º 17
0
 public CommentController(ICommentRepository commentRepository, IGroupMemberRepository groupMemberRepository,
                          IExamRepository examRepository, IGroupRepository groupRepository, IAccountRepository accountRepository)
 {
     _commentRepository     = commentRepository;
     _groupMemberRepository = groupMemberRepository;
     _examRepository        = examRepository;
     _groupRepository       = groupRepository;
     _accountRepository     = accountRepository;
     Log4Net.InitLog();
 }
Ejemplo n.º 18
0
 public QuestionService(
     IQuestionRepository questionRepository, 
     IAnswerChoiceRepository answerChoiceRepository,
     IExamRepository examRepository
     )
 {
     this.questionRepository = questionRepository;
     this.answerChoiceRepository = answerChoiceRepository;
     this.examRepository = examRepository;
 }
Ejemplo n.º 19
0
 public QuestionController(IAccountExamRepository accountExamRepository, IAccountRepository accountRepository, IAnswerUserRepository answerUserRepository, IExamRepository examRepository, IQuestionRepository questionRepository, IExamQuestionRepository examQuestionRepository)
 {
     _accountExamRepository  = accountExamRepository;
     _accountRepository      = accountRepository;
     _examRepository         = examRepository;
     _questionRepository     = questionRepository;
     _examQuestionRepository = examQuestionRepository;
     _answerUserRepository   = answerUserRepository;
     Log4Net.InitLog();
 }
Ejemplo n.º 20
0
 public ExamAnswersController(IAppUserGroupMemberRepository appUserGroupMemberRepository,
                              IExamRepository examRepository, IResultRepository resultRepository,
                              IGroupMemberRepository groupMemberRepository,
                              IGroupRepository groupRepository)
 {
     _groupRepository              = groupRepository;
     _groupMemberRepository        = groupMemberRepository;
     _examRepository               = examRepository;
     _resultRepository             = resultRepository;
     _appUserGroupMemberRepository = appUserGroupMemberRepository;
 }
Ejemplo n.º 21
0
 public UnitOfWork(AppDomainDbContext context, IStudentRepository studentRepository,
                   ITeacherRepository teacherRepository, ICourseRepository courseRepository,
                   IExamRepository examRepository, IAssignedExamRepository assignedExamRepository)
 {
     _context      = context;
     Students      = studentRepository;
     Teachers      = teacherRepository;
     Courses       = courseRepository;
     Exams         = examRepository;
     AssignedExams = assignedExamRepository;
 }
        public static async Task <Exam> GetOrFailAsync(this IExamRepository repository, Guid id)
        {
            var @exam = await repository.GetAsync(id);

            if (@exam == null)
            {
                throw new Exception($"Exam with id: '{id}' does not exists.");
            }

            return(@exam);
        }
Ejemplo n.º 23
0
 public FSNStudentController(IExScoreRepository iExScoreRepository, IStudentsRepository iStudentsRepository, IExamRepository iExamRepository, ICourseRepository iCourseRepository, IClazzRepository iClazzRepository, IGradeRepository iGradeRepository, ICCTRepository iCCTRepository, ITeacherRepository iTeacherRepository)
 {
     this._iExScoreRepository  = iExScoreRepository;
     this._iStudentsRepository = iStudentsRepository;
     this._iExamRepository     = iExamRepository;
     this._iCourseRepository   = iCourseRepository;
     this._iClazzRepository    = iClazzRepository;
     this._iGradeRepository    = iGradeRepository;
     this._iCCTRepository      = iCCTRepository;
     this._iTeacherRepository  = iTeacherRepository;
 }
Ejemplo n.º 24
0
 public AdminController(IUserRepository usrepo, IQuestionRepository quesrepo, IEvntRepository evrepo, IAnswerRepository ansrepo, ICourseRepository currepo, IExamRepository exrepo, IOptionRepository oprepo, IRegistrationRepository regrepo, IResultRepository resrepo)
 {
     this.evrepo   = evrepo;
     this.usrepo   = usrepo;
     this.quesrepo = quesrepo;
     this.ansrepo  = ansrepo;
     this.currepo  = currepo;
     this.exrepo   = exrepo;
     this.oprepo   = oprepo;
     this.regrepo  = regrepo;
     this.resrepo  = resrepo;
 }
Ejemplo n.º 25
0
 public ExamService(IExamRepository examRepository, IGradeRepository gradeRepository,
                    ICourseRepository courseRepository, IStudentRepository studentRepository,
                    IMailService mailService, ITeacherRepository teacherRepository, IDidacticRepository didacticRepository)
 {
     _examRepository     = examRepository;
     _gradeRepostory     = gradeRepository;
     _courseRepository   = courseRepository;
     _studentRepository  = studentRepository;
     _teacherRepository  = teacherRepository;
     _didacticRepository = didacticRepository;
     _mailService        = mailService;
 }
Ejemplo n.º 26
0
 public EnrollmentService(IEnrollmentRepository enrollmentRepository,
                          IExamRepository examRepository,
                          ICourseService courseService,
                          IHttpContextAccessor httpContextAccessor,
                          IMapper mapper)
 {
     _enrollmentRepository = enrollmentRepository;
     _examRepository       = examRepository;
     _courseService        = courseService;
     _httpContextAccessor  = httpContextAccessor;
     _mapper = mapper;
 }
Ejemplo n.º 27
0
 public FSNController(IExScoreRepository iExScoreRepository, IStudentsRepository iStudentsRepository, IExamRepository iExamRepository, ICourseRepository iCourseRepository, IClazzRepository iClazzRepository, IGradeRepository iGradeRepository, IUser iUser, ICCTRepository iCCTRepository, ITeacherRepository iTeacherRepository)
 {
     this._iExScoreRepository  = iExScoreRepository;
     this._iStudentsRepository = iStudentsRepository;
     this._iExamRepository     = iExamRepository;
     this._iCourseRepository   = iCourseRepository;
     this._iClazzRepository    = iClazzRepository;
     this._iGradeRepository    = iGradeRepository;
     this._iCCTRepository      = iCCTRepository;
     this._iTeacherRepository  = iTeacherRepository;
     GID = (iUser.GetClaimValueByType("GID").FirstOrDefault()).ObjToInt();
 }
Ejemplo n.º 28
0
        public Worker(ILogger <Worker> logger, IConfiguration configuration, IExamRepository examRepo)
        {
            _logger = logger;

            _configuration = configuration;
            _examRepo      = examRepo;

            _topics = new List <string>()
            {
                "usersubmit", "autosubmit"
            };
        }
Ejemplo n.º 29
0
 public UnitOfWork(IExamBuilderDbContext context,
                   IUserRepository users,
                   IOptionRepository options,
                   IExamRepository exams,
                   IQuestionRepository questions)
 {
     _context  = context;
     Exams     = exams;
     Options   = options;
     Questions = questions;
     Users     = users;
 }
Ejemplo n.º 30
0
 public ExamQuestionImpl(IExamQuestionRepository examQuestionRepository, IPreTestQuestionRepository preTestQuestionRepository, IEducationExamQuestionRepository educationExamQuestion, IEducationPreTestQuestionRepository educationPreTestQuestion, IExamRepository examRepository, IPreTestRepository preTestRepository, IEvaluationRepository evaluationRepository, IEvaluationQuestionRepository evaluationQuestionRepository, IEducationEvaluationRepository educationEvaluationRepository)
 {
     _examQuestionRepository        = examQuestionRepository;
     _preTestQuestionRepository     = preTestQuestionRepository;
     _educationExamQuestion         = educationExamQuestion;
     _educationPreTestQuestion      = educationPreTestQuestion;
     _examRepository                = examRepository;
     _preTestRepository             = preTestRepository;
     _evaluationRepository          = evaluationRepository;
     _evaluationQuestionRepository  = evaluationQuestionRepository;
     _educationEvaluationRepository = educationEvaluationRepository;
 }
Ejemplo n.º 31
0
 public ExamQuestionController(IExamQuestionRepository examQuestionRepository
                               , IExamRepository examRepository
                               , IQuestionRepository questionRepository
                               , IQuestionChoiceRepository questionChoiceRepository,
                               IChoiceRepository choiceRepository)
 {
     this.examQuestionRepository   = examQuestionRepository;
     this.examRepository           = examRepository;
     this.questionRepository       = questionRepository;
     this.questionChoiceRepository = questionChoiceRepository;
     this.choiceRepository         = choiceRepository;
 }
Ejemplo n.º 32
0
 public ReportSubjectViewModel(IExamRepository repository)
 {
     this.repository = repository;
     this.Refresh();
 }
Ejemplo n.º 33
0
 public ExamService(IExamRepository IExamRepository)
     : base()
 {
     _IExamRepository = IExamRepository;
 }
Ejemplo n.º 34
0
 public ExamService(IExamRepository examRepository, IQuestionRepository questionRepository)
 {
     this.examRepository = examRepository;
     this.questionRepository = questionRepository;
 }