Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TestsService"/> class.
 /// </summary>
 /// <param name="context">The context.</param>
 public TestsService(DbContext context)
 {
     m_repository                  = new Repository <Test>(context);
     m_questionRepository          = new Repository <Question>(context);
     m_studentTest                 = new Repository <StudentTest>(context);
     m_studentTestDetailRepository = new Repository <StudentTestDetail>(context);
     m_testCopyRepository          = new Repository <TestCopy>(context);
     m_questionService             = new QuestionsService(context);
 }
Esempio n. 2
0
 public MultiTestService(NganHangEntities dbContext)
 {
     m_repository     = new Repository <MultiTest>(dbContext);
     m_subjectService = new SubjectsService(dbContext);
     m_subjectsMultiTestRepository = new Repository <SubjectsMultiTest>(dbContext);
     m_questionRepository          = new Repository <Question>(dbContext);
     m_multiTestCopyRepository     = new Repository <MultiTestCopy>(dbContext);
     m_questionService             = new QuestionsService(dbContext);
 }