public static TestRun RunTest(params Record[] records) { var collectPrimarykeyProcess = new AI_01_CollectPrimaryKey(); var controlForeignKeyProcess = new A_16_ControlForeignKey(); foreach (var record in records) { collectPrimarykeyProcess.Run(record); controlForeignKeyProcess.Run(record); } // need to do transfering of primary keys manually in the test environment controlForeignKeyProcess.CollectedPrimaryKeys = collectPrimarykeyProcess._primaryKeys; return(controlForeignKeyProcess.GetTestRun()); }
private void LoadCollectedPrimaryKeysIntoControlForeignKeyProcess(IAddmlProcess addmlProcess) { AI_01_CollectPrimaryKey collectPrimaryKeyProcess = (AI_01_CollectPrimaryKey)_processManager.GetProcessInstanceByName(AI_01_CollectPrimaryKey.Name); ((A_16_ControlForeignKey)addmlProcess).GetCollectedPrimaryKeys(collectPrimaryKeyProcess); }
public void GetCollectedPrimaryKeys(AI_01_CollectPrimaryKey collectPrimaryKeyProcess) { CollectedPrimaryKeys = collectPrimaryKeyProcess._primaryKeys; }