public UnitTestBase() { _map = new MappingEngine(BootStrapMapper.BootstrapMapper()); _context = new MockResidentDBContext(); _logger = new LoggerManager(); _repo = new ResidentRepository(_context, _map, _logger); _service = new ResidentService(_repo, _logger); }
protected void Dispose(bool disposing) { if (disposing) { if (db != null) { db.Dispose(); db = null; } } }
public ResidentRepository(MockResidentDBContext context, MappingEngine map, ILoggerManager loggerManager) { db = context; mapper = map; logger = loggerManager; }