public void TestSetup() { _appToDbModelConverter = new ApptoDbModelConverter(); _dbToAppModelConverter = new DbToAppModelConverter(); _dbContextFactory = new TestDbContextFactory(); _dbQuerier = new RealDatabaseQuerier(_dbContextFactory, _dbToAppModelConverter, _appToDbModelConverter); }
public void TestSetup() { _fakeDbContext = Substitute.For <IAppDbContext>(); _converterToIntegrate = new DbToAppModelConverter(); _appToDbModelConverter = new ApptoDbModelConverter(); _dbContextFactory = Substitute.For <IDbContextFactory>(); _dbContextFactory.GetContext().Returns(_fakeDbContext); _dbQuerier = new RealDatabaseQuerier(_dbContextFactory, _converterToIntegrate, _appToDbModelConverter); }