public RepositoryTest()
 {
     _context                  = new EmployeeSkillsDBContext();
     _skillRepository          = new SkillRepository(_context);
     _EmployeeSkillsRepository = new EmployeeSkillsRepository(_context);
     SetupLogging();
 }
 //private EmployeeSkillsDBContext _context;
 public CategoryRepository(EmployeeSkillsDBContext Context) : base(Context)
 {
     _context = Context;
     _repo    = new BaseInstanceRepository <Category>(Context);
 }
Example #3
0
 public void Setup()
 {
     _context                  = new EmployeeSkillsDBContext();
     _skillRepository          = new SkillRepository(_context);
     _EmployeeSkillsRepository = new EmployeeSkillsRepository(_context);
 }
Example #4
0
 //private EmployeeSkillsDBContext _context;
 public EmployeeSkillsRepository(EmployeeSkillsDBContext Context)
 {
     this._context = Context;
 }
 public BaseInstanceRepository(EmployeeSkillsDBContext _db)
 {
     db     = _db;
     _dbSet = _db.Set <T>();
 }
 public EmployeeRepository(EmployeeSkillsDBContext Context) : base(Context)
 {
     this._context = Context;
     _repo         = new BaseInstanceRepository <Employee>(Context);
 }
Example #7
0
 //private EmployeeSkillsDBContext _context;
 public DepartmentRepository(EmployeeSkillsDBContext Context) : base(Context)
 {
     this._context = Context;
     _repo         = new BaseInstanceRepository <Department>(Context);
 }