public static TestRun RunTest(params Record[] records) { var collectPrimarykeyProcess = new CollectPrimaryKey(); var controlForeignKeyProcess = new 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) { CollectPrimaryKey collectPrimaryKeyProcess = (CollectPrimaryKey)_processManager.GetProcessInstanceByName(CollectPrimaryKey.Name); ((ControlForeignKey)addmlProcess).GetCollectedPrimaryKeys(collectPrimaryKeyProcess); }
public void GetCollectedPrimaryKeys(CollectPrimaryKey collectPrimaryKeyProcess) { CollectedPrimaryKeys = collectPrimaryKeyProcess._primaryKeys; }