public ContextTestBase() { var options = ContextOptionsFactory.CreateSqliteOptions <SchedulerDbContext>(); context = new SchedulerDbContext(options); context.Database.OpenConnection(); context.Database.EnsureCreated(); }
public DisconnectedStateTestBase() { options = ContextOptionsFactory.CreateSqliteOptions <SchedulerDbContext>(); using (var context = new SchedulerDbContext(options)) { context.Database.OpenConnection(); context.Database.EnsureCreated(); } }