示例#1
0
文件: DBTest.cs 项目: WikiLibs/API
 public virtual void Setup()
 {
     _connection.Open();
     Smtp = new TestingSmtp();
     DbUtils.CreateFakeDB(_connection);
     Context = new Data.Context(new DbContextOptionsBuilder().UseSqlite(_connection).UseLazyLoadingProxies().Options);
     User    = new FakeUser(Context);
     Manager = CreateManager();
 }
示例#2
0
文件: DBTest.cs 项目: WikiLibs/API
 public void Teardown()
 {
     Context.Dispose();
     _connection.Close();
     Smtp = null;
 }