Example #1
0
        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();
        }
Example #2
0
 public void shutdown()
 {
     if( _db != null && _db is IDisposable )
     {
     ((IDisposable)_db).Dispose();
     _db = null;
     _cfg = null;
     }
 }