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());
        }
예제 #2
0
        private void LoadCollectedPrimaryKeysIntoControlForeignKeyProcess(IAddmlProcess addmlProcess)
        {
            CollectPrimaryKey collectPrimaryKeyProcess = (CollectPrimaryKey)_processManager.GetProcessInstanceByName(CollectPrimaryKey.Name);

            ((ControlForeignKey)addmlProcess).GetCollectedPrimaryKeys(collectPrimaryKeyProcess);
        }
예제 #3
0
 public void GetCollectedPrimaryKeys(CollectPrimaryKey collectPrimaryKeyProcess)
 {
     CollectedPrimaryKeys = collectPrimaryKeyProcess._primaryKeys;
 }