public void InitializeCreateConfigTest() { DBConfig dbConfigSource = new DBConfig("System.Data.OleDb", String.Format(@"Provider=Microsoft.JET.OLEDB.4.0;data source={0}\DatabaseSource.mdb", AppDomain.CurrentDomain.BaseDirectory)); dbConnectionSource = new DBConnection(); dbConnectionSource.Initialize(dbConfigSource); DBConfig dbConfigTarget = new DBConfig("System.Data.OleDb", String.Format(@"Provider=Microsoft.JET.OLEDB.4.0;data source={0}\DatabaseTarget.mdb", AppDomain.CurrentDomain.BaseDirectory)); dbConnectionTarget = new DBConnection(); dbConnectionTarget.Initialize(dbConfigTarget); convertName = new ConvertName(); columnMigrator = new ColumnMigrator(convertName); logger = new Log4NetLogger(); }
public TableMigration(IConvertName convertName, IColumnMigrator columnMigrator, ILogger logger) { this.convertName = convertName; this.columnMigrator = columnMigrator; this.logger = logger; }