Esempio n. 1
0
 public UnitOfWork(DTRContext context)
 {
     _context             = context;
     StudentRepository    = new StudentRepository(_context);
     GroupRepository      = new GroupRepository(_context);
     CompanyRepository    = new CompanyRepository(_context);
     SupervisorRepository = new SupervisorRepository(_context);
     ProjectRepository    = new ProjectRepository(_context);
     ContractRepository   = new ContractRepository(_context);
     UserRepository       = new UserRepository(_context);
     AppendixRepository   = new AppendixRepository();
 }
Esempio n. 2
0
 public GroupRepositoryShould()
 {
     _context    = TestContext.Context;
     _repository = new GroupRepository(_context);
 }
Esempio n. 3
0
 public ContractRepositoryShould()
 {
     _context    = TestContext.Context;
     _repository = new ContractRepository(_context);
 }
Esempio n. 4
0
 public ProjectRepositoryShould()
 {
     _context    = TestContext.Context;
     _repository = new ProjectRepository(_context);
 }
Esempio n. 5
0
 public UserRepositoryShould()
 {
     _context    = TestContext.Context;
     _repository = new UserRepository(_context);
 }
Esempio n. 6
0
 public StudentRepository(DTRContext context)
 {
     _context = context;
 }
Esempio n. 7
0
 public UserRepository(DTRContext context)
 {
     _context = context;
 }
Esempio n. 8
0
 public GroupRepository(DTRContext context)
 {
     _context = context;
 }
Esempio n. 9
0
 public CompanyRepository(DTRContext context)
 {
     _context = context;
 }
Esempio n. 10
0
 public SupervisorRepositoryShould()
 {
     _context    = TestContext.Context;
     _repository = new SupervisorRepository(_context);
 }
Esempio n. 11
0
 public StudentRepositoryShould()
 {
     _context         = TestContext.Context;
     _repository      = new StudentRepository(_context);
     _groupRepository = new GroupRepository(_context);
 }
Esempio n. 12
0
 public ContractRepository(DTRContext context)
 {
     _context = context;
 }
Esempio n. 13
0
 public SupervisorRepository(DTRContext context)
 {
     _context = context;
 }
Esempio n. 14
0
 public ProjectRepository(DTRContext context)
 {
     _context = context;
 }