public void setupConfig( IDatabase db ) { // We want to find the impexporter config file. string nunitPath = TestContext.CurrentContext.WorkDirectory; string configPath = Path.Combine( nunitPath, "..", "..", "..", "config.xml" ); _cfg = XmlPersistence.Load<ImpExporterConfig>( configPath ); // Create the database itself. _db = db; _ti = new TableInfo(); }
public void shutdown() { if( _db != null && _db is IDisposable ) { ((IDisposable)_db).Dispose(); _db = null; _cfg = null; } }