Exemple #1
0
        private IRaceVenturaDbContext InMemoryContext(string connection)
        {
            var options = new DbContextOptionsBuilder <RaceVenturaDbContext>()
                          .UseInMemoryDatabase(connection)
                          .EnableSensitiveDataLogging()
                          .Options;
            var context = new RaceVenturaDbContext(options);

            return(context);
        }
Exemple #2
0
 public void InitializeTest()
 {
     _Sut = new RaceVenturaDbContext(new DbContextOptions <RaceVenturaDbContext>());
 }