private void BWorker_DoWork(object sender, DoWorkEventArgs e) { if (tableNames.Count == 0) { DispatchLabel("Populating all tables..."); TableAgentCollection.Populate(); } else { TableAgentCollection.Populate(tableNames); Array.ForEach(tableNames.ToArray(), a => { DispatchLabel($"Populating table {a}..."); }); } DispatchLabel("Mapping tables..."); mm = new MappingExecutionManager(); mm.BeginExecution(); while (!mm.MappingsCompleted) { } DispatchLabel("Mapping Complete."); }
public void Populate_Collection() { // collection is empty prior to calling populate method Assert.IsTrue(TableAgentCollection.TableAgents.Count == 0); TableAgentCollection.Populate(); // collecion is not empty after calling populate method Assert.IsTrue(TableAgentCollection.TableAgents.Count > 0); }
public void Populate_Collection_With_Table_Name() { // collection is empty prior to calling populate method Assert.IsTrue(TableAgentCollection.TableAgents.Count == 0); TableAgentCollection.Populate(new List <string> { "PATIENTS", "DMDATA" }); // collecion is not empty after calling populate method Assert.IsTrue(TableAgentCollection.TableAgents.Count > 0); }
private static void TestDmdataMapping() { MigrationVariables.Init(); TableAgentCollection.Populate(new List <string> { "PATIENTS", "DMDATA" }); PatientsMapping pMap = new PatientsMapping(); pMap.CreatePatientMapping(); DMDataMapping map = new DMDataMapping(); map.CreateDMDataMapping(); }