Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 public void Teardown()
 {
     Context.Dispose();
     _connection.Close();
     Smtp = null;
 }