Beispiel #1
0
 public CookBookDbContextAsyncTests()
 {
     _dbContextFactory     = new DbContextInMemoryFactory(nameof(CookBookDbContextTests));
     _cookBookDbContextSUT = _dbContextFactory.Create();
 }
Beispiel #2
0
 public CookBookDbContextTests()
 {
     _dbContextFactory     = new DbContextInMemoryFactory(nameof(CookBookDbContextTests));
     _cookBookDbContextSUT = _dbContextFactory.Create();
     _cookBookDbContextSUT.Database.EnsureCreated();
 }
Beispiel #3
0
 public CookBookDbContextFixture()
 {
     DbContextFactory     = new DbContextInMemoryFactory(typeof(TFixture).Name);
     CookBookDbContextSUT = DbContextFactory.CreateDbContext();
     CookBookDbContextSUT.Database.EnsureCreated();
 }