Esempio n. 1
0
        public TestBase()
        {
            var options = new DbContextOptionsBuilder <DataContextTest>()
                          .UseInMemoryDatabase(databaseName: Guid.NewGuid().ToString())
                          .Options;

            _context = new DataContextTest(options);
            _context.Database.EnsureCreated();
        }
Esempio n. 2
0
 public ContextTest()
 {
     _context = new DataContextTest(
         new ConfigurationBuilder().Build()
         );
 }