public void SetUp()
 {
     _fakeContext = DbContextTest.CreateDbContext <EmployeeContext>();
     _mapper      = A.Fake <IMapper>();
     _factory     = new MapperFactory(_mapper);
     _repository  = new EmployeeRepository(_fakeContext, _factory);
 }
Example #2
0
 public void SetUp()
 {
     _fakeContext = DbContextTest.CreateDbContext <EmployeeContext>();
     _mapper      = A.Fake <IMapper>();
     _repository  = new DepartmentRepository(_fakeContext, _mapper);
 }