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