Esempio n. 1
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;
 }
        public void ExamQuestionInitialize()
        {
            _examQuestionRepository             = new ExamQuestionRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>());
            _preTestQuestionRepository          = new PreTestQuestionRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>());
            _educationPreTestQuestionRepository = new EducationPreTestQuestionRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>());
            _educationExamQuestionRepository    = new EducationExamQuestionRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>());
            _examRepository                = new ExamRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>());
            _preTestRepository             = new PreTestRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>());
            _evaluationRepository          = new EvaluationRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>());
            _evaluationQuestionRepository  = new EvaluationQuestionRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>());
            _educationEvaluationRepository = new EducationEvaluationRepository(new Core.Base.Data.SqlServer.Factory.BaseContextFactory <HCRGUniversity.Core.Data.SqlServer.HCRGUniversityDBContext>());

            _examQuestionBL = new ExamQuestionImpl(_examQuestionRepository, _preTestQuestionRepository, _educationExamQuestionRepository, _educationPreTestQuestionRepository, _examRepository, _preTestRepository, _evaluationRepository, _evaluationQuestionRepository, _educationEvaluationRepository);
        }