Example #1
0
        public ContextTestBase()
        {
            var options = ContextOptionsFactory.CreateSqliteOptions <SchedulerDbContext>();

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