Esempio n. 1
0
        public UnitOfWork(ApplicationDbContext dbContext)
        {
            _dbContext = dbContext;

            Campaigns    = new CampaignRepository(_dbContext);
            TestCenters  = new TestCenterRepository(_dbContext);
            Participants = new ParticipantRepository(_dbContext);
            Examinations = new ExaminationRepository(_dbContext);
        }
Esempio n. 2
0
 public UnitOfWork(ApplicationDbContext dbContext)
 {
     _dbContext         = dbContext;
     VerificationTokens = new VerificationTokenRepository(_dbContext);
     Campaigns          = new CampaignRepository(_dbContext);
     TestCenters        = new TestCenterRepository(_dbContext);
     Participants       = new ParticipantRepository(_dbContext);
     Examinations       = new ExaminationRepository(_dbContext);
     AuthUsers          = new AuthUserRepository(_dbContext);
     AuthRoles          = new AuthRoleRepository(_dbContext);
 }
Esempio n. 3
0
 public UnitOfWork(ApplicationDbContext dbContext)
 {
     _dbContext            = dbContext;
     CampaignRepository    = new CampaignRepository(_dbContext);
     TestCenterRepository  = new TestCenterRepository(_dbContext);
     ParticipantRepository = new ParticipantRepository(_dbContext);
     ExaminationRepository = new ExaminationRepository(_dbContext);
     VerificationTokens    = new TokenVerificationRepository(_dbContext);
     UserRepository        = new UserRepository(_dbContext);
     RoleRepository        = new RoleRepository(_dbContext);
 }