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());
        }
Esempio n. 2
0
        private void LoadCollectedPrimaryKeysIntoControlForeignKeyProcess(IAddmlProcess addmlProcess)
        {
            AI_01_CollectPrimaryKey collectPrimaryKeyProcess = (AI_01_CollectPrimaryKey)_processManager.GetProcessInstanceByName(AI_01_CollectPrimaryKey.Name);

            ((A_16_ControlForeignKey)addmlProcess).GetCollectedPrimaryKeys(collectPrimaryKeyProcess);
        }
Esempio n. 3
0
 public void GetCollectedPrimaryKeys(AI_01_CollectPrimaryKey collectPrimaryKeyProcess)
 {
     CollectedPrimaryKeys = collectPrimaryKeyProcess._primaryKeys;
 }