public RepositoryContext(string connectionName)
 {
     context                      = new AppDbContext(connectionName);
     PersonRepository             = new PersonRepository(context);
     QuestionRepository           = new QuestionRepository(context);
     TestQuestionAnswerRepository = new TestQuestionAnswerRepository(context);
     TestResultRepository         = new TestResultRepository(context);
 }
 public virtual void Dispose(bool disposing)
 {
     if (!this.disposed)
     {
         if (disposing)
         {
             PersonRepository.Dispose();
             QuestionRepository.Dispose();
             TestQuestionAnswerRepository.Dispose();
             TestResultRepository.Dispose();
         }
         this.disposed = true;
     }
 }