예제 #1
0
 public void TestSetup()
 {
     _appToDbModelConverter = new ApptoDbModelConverter();
     _dbToAppModelConverter = new DbToAppModelConverter();
     _dbContextFactory      = new TestDbContextFactory();
     _dbQuerier             = new RealDatabaseQuerier(_dbContextFactory,
                                                      _dbToAppModelConverter,
                                                      _appToDbModelConverter);
 }
예제 #2
0
 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);
 }