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(); }
public GroupRepositoryShould() { _context = TestContext.Context; _repository = new GroupRepository(_context); }
public ContractRepositoryShould() { _context = TestContext.Context; _repository = new ContractRepository(_context); }
public ProjectRepositoryShould() { _context = TestContext.Context; _repository = new ProjectRepository(_context); }
public UserRepositoryShould() { _context = TestContext.Context; _repository = new UserRepository(_context); }
public StudentRepository(DTRContext context) { _context = context; }
public UserRepository(DTRContext context) { _context = context; }
public GroupRepository(DTRContext context) { _context = context; }
public CompanyRepository(DTRContext context) { _context = context; }
public SupervisorRepositoryShould() { _context = TestContext.Context; _repository = new SupervisorRepository(_context); }
public StudentRepositoryShould() { _context = TestContext.Context; _repository = new StudentRepository(_context); _groupRepository = new GroupRepository(_context); }
public ContractRepository(DTRContext context) { _context = context; }
public SupervisorRepository(DTRContext context) { _context = context; }
public ProjectRepository(DTRContext context) { _context = context; }