Exemplo 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();
 }
Exemplo n.º 2
0
 public GroupRepositoryShould()
 {
     _context    = TestContext.Context;
     _repository = new GroupRepository(_context);
 }
Exemplo n.º 3
0
 public ContractRepositoryShould()
 {
     _context    = TestContext.Context;
     _repository = new ContractRepository(_context);
 }
Exemplo n.º 4
0
 public ProjectRepositoryShould()
 {
     _context    = TestContext.Context;
     _repository = new ProjectRepository(_context);
 }
Exemplo n.º 5
0
 public UserRepositoryShould()
 {
     _context    = TestContext.Context;
     _repository = new UserRepository(_context);
 }
Exemplo n.º 6
0
 public StudentRepository(DTRContext context)
 {
     _context = context;
 }
Exemplo n.º 7
0
 public UserRepository(DTRContext context)
 {
     _context = context;
 }
Exemplo n.º 8
0
 public GroupRepository(DTRContext context)
 {
     _context = context;
 }
Exemplo n.º 9
0
 public CompanyRepository(DTRContext context)
 {
     _context = context;
 }
Exemplo n.º 10
0
 public SupervisorRepositoryShould()
 {
     _context    = TestContext.Context;
     _repository = new SupervisorRepository(_context);
 }
Exemplo n.º 11
0
 public StudentRepositoryShould()
 {
     _context         = TestContext.Context;
     _repository      = new StudentRepository(_context);
     _groupRepository = new GroupRepository(_context);
 }
Exemplo n.º 12
0
 public ContractRepository(DTRContext context)
 {
     _context = context;
 }
Exemplo n.º 13
0
 public SupervisorRepository(DTRContext context)
 {
     _context = context;
 }
Exemplo n.º 14
0
 public ProjectRepository(DTRContext context)
 {
     _context = context;
 }