示例#1
0
        public void SequenceDesignerViewModel_ActivityNames_When4_HasAllNames()
        {
            //------------Setup for test--------------------------
            var dsfSequenceActivity    = new DsfSequenceActivity();
            var dsfMultiAssignActivity = new DsfMultiAssignActivity();

            dsfSequenceActivity.Activities.Add(dsfMultiAssignActivity);
            var dsfFindRecordsMultipleCriteriaActivity = new DsfFindRecordsMultipleCriteriaActivity();

            dsfSequenceActivity.Activities.Add(dsfFindRecordsMultipleCriteriaActivity);
            var dsfGatherSystemInformationActivity = new DsfGatherSystemInformationActivity();

            dsfSequenceActivity.Activities.Add(dsfGatherSystemInformationActivity);
            var dsfBaseConvertActivity = new DsfBaseConvertActivity();

            dsfSequenceActivity.Activities.Add(dsfBaseConvertActivity);
            var sequenceDesignerViewModel = new SequenceDesignerViewModel(CreateModelItem(dsfSequenceActivity));
            //------------Execute Test---------------------------
            var activityNames = sequenceDesignerViewModel.ActivityNames;

            //------------Assert Results-------------------------
            Assert.AreEqual(4, activityNames.Count);
            Assert.AreEqual(dsfMultiAssignActivity.DisplayName, activityNames[0]);
            Assert.AreEqual(dsfFindRecordsMultipleCriteriaActivity.DisplayName, activityNames[1]);
            Assert.AreEqual(dsfGatherSystemInformationActivity.DisplayName, activityNames[2]);
            Assert.AreEqual(dsfBaseConvertActivity.DisplayName, activityNames[3]);
        }
        public void GetFindMissingTypeExpectDataGridActivityType()
        {
            //------------Setup for test--------------------------
            var activity = new DsfGatherSystemInformationActivity();
            //------------Execute Test---------------------------
            var findMissingType = activity.GetFindMissingType();

            //------------Assert Results-------------------------
            Assert.AreEqual(enFindMissingType.DataGridActivity, findMissingType);
        }
示例#3
0
        public void GetActivityFieldsOffGatherSystemInfoExpectedAllFindMissingFieldsToBeReturned()
        {
            DsfGatherSystemInformationActivity baseConvertActivity = new DsfGatherSystemInformationActivity {
                SystemInformationCollection = new List <GatherSystemInformationTO> {
                    new GatherSystemInformationTO(enTypeOfSystemInformationToGather.CPUAvailable, "res", 1)
                }
            };
            Dev2FindMissingStrategyFactory fac      = new Dev2FindMissingStrategyFactory();
            IFindMissingStrategy           strategy = fac.CreateFindMissingStrategy(enFindMissingType.DataGridActivity);
            List <string> actual   = strategy.GetActivityFields(baseConvertActivity);
            List <string> expected = new List <string> {
                "res"
            };

            CollectionAssert.AreEqual(expected, actual);
        }
示例#4
0
        public void Equals_Given_Same_SystemInformationCollection_Different_Indexes_IsNotEqual()
        {
            //---------------Set up test pack-------------------
            var uniqueId = Guid.NewGuid().ToString();
            var systemInformationCollection = new List <GatherSystemInformationTO>
            {
                new GatherSystemInformationTO
                {
                    EnTypeOfSystemInformation = Data.Interfaces.Enums.enTypeOfSystemInformationToGather.UserName
                }
                ,
                new GatherSystemInformationTO
                {
                    EnTypeOfSystemInformation = Data.Interfaces.Enums.enTypeOfSystemInformationToGather.ComputerName
                }
            };

            var systemInformationCollection2 = new List <GatherSystemInformationTO>
            {
                new GatherSystemInformationTO
                {
                    EnTypeOfSystemInformation = Data.Interfaces.Enums.enTypeOfSystemInformationToGather.ComputerName
                }
                ,
                new GatherSystemInformationTO
                {
                    EnTypeOfSystemInformation = Data.Interfaces.Enums.enTypeOfSystemInformationToGather.UserName
                }
            };
            var activity1 = new DsfGatherSystemInformationActivity()
            {
                UniqueID = uniqueId, SystemInformationCollection = systemInformationCollection
            };
            var activity = new DsfGatherSystemInformationActivity()
            {
                UniqueID = uniqueId, SystemInformationCollection = systemInformationCollection2
            };

            //---------------Assert Precondition----------------
            Assert.IsNotNull(activity1);
            //---------------Execute Test ----------------------
            var @equals = activity1.Equals(activity);

            //---------------Test Result -----------------------
            Assert.IsFalse(@equals);
        }
        protected override void BuildDataList()
        {
            BuildShapeAndTestData();

            var systemInformationCollection =
                scenarioContext.Get <List <GatherSystemInformationTO> >("systemInformationCollection");

            var dsfGatherSystemInformationActivity = new DsfGatherSystemInformationActivity
            {
                SystemInformationCollection = systemInformationCollection
            };

            TestStartNode = new FlowStep
            {
                Action = dsfGatherSystemInformationActivity
            };
            scenarioContext.Add("activity", dsfGatherSystemInformationActivity);
        }
示例#6
0
        public void GivenItContainsGatherSystemInfoAs(string parentName, string activityName, Table table)
        {
            var activity = new DsfGatherSystemInformationActivity {
                DisplayName = activityName
            };

            foreach (var tableRow in table.Rows)
            {
                var variable = tableRow["Variable"];

                _commonSteps.AddVariableToVariableList(variable);

                var systemInfo = (enTypeOfSystemInformationToGather)Dev2EnumConverter.GetEnumFromStringDiscription(tableRow["Selected"], typeof(enTypeOfSystemInformationToGather));
                activity.SystemInformationCollection.Add(new GatherSystemInformationTO(systemInfo, variable, 1));
            }

            _commonSteps.AddActivityToActivityList(parentName, activityName, activity);
        }
        protected override void BuildDataList()
        {
            BuildShapeAndTestData();

            var systemInformationCollection =
                ScenarioContext.Current.Get<List<GatherSystemInformationTO>>("systemInformationCollection");

            var dsfGatherSystemInformationActivity = new DsfGatherSystemInformationActivity
                {
                    SystemInformationCollection = systemInformationCollection
                };

            TestStartNode = new FlowStep
                {
                    Action = dsfGatherSystemInformationActivity
                };
            ScenarioContext.Current.Add("activity", dsfGatherSystemInformationActivity);
        }
        public void ForEachDesignerViewModel_MultipleItems_ModelItemsFormatListOfModelItemContainsNonActivity_NotAddedToSequence()
        {
            //------------Setup for test--------------------------
            var modelItem      = CreateModelItem();
            var viewModel      = new ForeachDesignerViewModel(modelItem);
            var assignActivity = new DsfMultiAssignActivity();
            var gatherSystemInformationActivity = new DsfGatherSystemInformationActivity();
            var dataObject = new DataObject("ModelItemsFormat", new List <ModelItem> {
                ModelItemUtils.CreateModelItem("a string model item"), ModelItemUtils.CreateModelItem(gatherSystemInformationActivity), ModelItemUtils.CreateModelItem(assignActivity)
            });
            //------------Execute Test---------------------------
            bool multipleItemsToSequence = viewModel.MultipleItemsToSequence(dataObject);

            //------------Assert Results-------------------------
            Assert.IsTrue(multipleItemsToSequence);
            //            var dsfSequenceActivity = multipleItemsToSequence.GetCurrentValue() as DsfSequenceActivity;
            //            Assert.IsNotNull(dsfSequenceActivity);
            //            Assert.AreEqual(2, dsfSequenceActivity.Activities.Count);
            //            Assert.AreEqual(gatherSystemInformationActivity, dsfSequenceActivity.Activities[0]);
            //            Assert.AreEqual(assignActivity, dsfSequenceActivity.Activities[1]);
        }
示例#9
0
        public void Equals_Given_Different_DisplayName_Is_Not_Equal()
        {
            //---------------Set up test pack-------------------
            var uniqueId  = Guid.NewGuid().ToString();
            var activity1 = new DsfGatherSystemInformationActivity()
            {
                UniqueID = uniqueId, DisplayName = "A"
            };
            var activity = new DsfGatherSystemInformationActivity()
            {
                UniqueID = uniqueId, DisplayName = "ass"
            };

            //---------------Assert Precondition----------------
            Assert.IsNotNull(activity1);
            //---------------Execute Test ----------------------
            var @equals = activity1.Equals(activity);

            //---------------Test Result -----------------------
            Assert.IsFalse(@equals);
        }
示例#10
0
        public void Equals_Given_EmptyActivityTools_AreEqual()
        {
            //---------------Set up test pack-------------------
            var uniqueId = Guid.NewGuid().ToString();
            var activity = new DsfGatherSystemInformationActivity()
            {
                UniqueID = uniqueId
            };
            var activity1 = new DsfGatherSystemInformationActivity()
            {
                UniqueID = uniqueId
            };

            //---------------Assert Precondition----------------
            Assert.IsNotNull(activity);
            //---------------Execute Test ----------------------
            var @equals = activity.Equals(activity1);

            //---------------Test Result -----------------------
            Assert.IsTrue(@equals);
        }
        /// <summary>
        /// Gets all the fields for a specific activity
        /// </summary>
        /// <param name="activity">The activity that the fields will be retrieved from</param>
        /// <returns>Returns all the fields in a list of strings</returns>
        public List <string> GetActivityFields(object activity)
        {
            List <string> results      = new List <string>();
            Type          activityType = activity.GetType();

            if (activityType == typeof(DsfBaseConvertActivity))
            {
                DsfBaseConvertActivity bcAct = activity as DsfBaseConvertActivity;
                if (bcAct != null)
                {
                    results.AddRange(InternalFindMissing(bcAct.ConvertCollection));
                }
            }
            else if (activityType == typeof(DsfCaseConvertActivity))
            {
                DsfCaseConvertActivity ccAct = activity as DsfCaseConvertActivity;
                if (ccAct != null)
                {
                    results.AddRange(InternalFindMissing(ccAct.ConvertCollection));
                }
            }
            else if (activityType == typeof(DsfMultiAssignActivity))
            {
                DsfMultiAssignActivity maAct = activity as DsfMultiAssignActivity;
                if (maAct != null)
                {
                    results.AddRange(InternalFindMissing(maAct.FieldsCollection));
                }
            }
            else if (activityType == typeof(DsfGatherSystemInformationActivity))
            {
                DsfGatherSystemInformationActivity maAct = activity as DsfGatherSystemInformationActivity;
                if (maAct != null)
                {
                    results.AddRange(InternalFindMissing(maAct.SystemInformationCollection));
                }
            }
            return(results);
        }
示例#12
0
        public void Equals_Given_Same_Text_IsEqual()
        {
            //---------------Set up test pack-------------------
            var uniqueId = Guid.NewGuid().ToString();
            var systemInformationCollection = new List <GatherSystemInformationTO>();
            var activity1 = new DsfGatherSystemInformationActivity()
            {
                UniqueID = uniqueId, SystemInformationCollection = systemInformationCollection
            };
            var activity = new DsfGatherSystemInformationActivity()
            {
                UniqueID = uniqueId, SystemInformationCollection = systemInformationCollection
            };

            //---------------Assert Precondition----------------
            Assert.IsNotNull(activity1);
            //---------------Execute Test ----------------------
            var @equals = activity1.Equals(activity);

            //---------------Test Result -----------------------
            Assert.IsTrue(@equals);
        }
示例#13
0
        public void SequenceDesignerViewModel_ActivityNames_WhenMoreThan4_Has4NamesLastItemEllipsis()
        {
            //------------Setup for test--------------------------
            var dsfSequenceActivity    = new DsfSequenceActivity();
            var dsfMultiAssignActivity = new DsfMultiAssignActivity();

            dsfSequenceActivity.Activities.Add(dsfMultiAssignActivity);
            var dsfFindRecordsMultipleCriteriaActivity = new DsfFindRecordsMultipleCriteriaActivity();

            dsfSequenceActivity.Activities.Add(dsfFindRecordsMultipleCriteriaActivity);
            var dsfGatherSystemInformationActivity = new DsfGatherSystemInformationActivity();

            dsfSequenceActivity.Activities.Add(dsfGatherSystemInformationActivity);
            var dsfBaseConvertActivity = new DsfBaseConvertActivity();

            dsfSequenceActivity.Activities.Add(dsfBaseConvertActivity);
            var dsfCaseConvertActivity = new DsfCaseConvertActivity();

            dsfSequenceActivity.Activities.Add(dsfCaseConvertActivity);
            var dsfCalculateActivity = new DsfCalculateActivity();

            dsfSequenceActivity.Activities.Add(dsfCalculateActivity);
            var sequenceDesignerViewModel = new SequenceDesignerViewModel(CreateModelItem(dsfSequenceActivity));
            //------------Execute Test---------------------------
            var activityNames = sequenceDesignerViewModel.ActivityNames;

            //------------Assert Results-------------------------
            Assert.AreEqual(5, activityNames.Count);
            Assert.AreEqual(dsfMultiAssignActivity.DisplayName, activityNames[0]);
            Assert.AreEqual(dsfFindRecordsMultipleCriteriaActivity.DisplayName, activityNames[1]);
            Assert.AreEqual(dsfGatherSystemInformationActivity.DisplayName, activityNames[2]);
            Assert.AreEqual(dsfBaseConvertActivity.DisplayName, activityNames[3]);
            Assert.AreEqual("...", activityNames[4]);

            CollectionAssert.DoesNotContain(activityNames, dsfCaseConvertActivity.DisplayName);
            CollectionAssert.DoesNotContain(activityNames, dsfCalculateActivity.DisplayName);
        }
        static DsfGatherSystemInformationActivity GetGatherSystemInformationActivity()
        {
            var activity = new DsfGatherSystemInformationActivity();

            return(activity);
        }
        public void SequenceDesignerViewModel_ActivityNames_WhenMoreThan4_Has4NamesLastItemEllipsis()
        {
            //------------Setup for test--------------------------
            var dsfSequenceActivity = new DsfSequenceActivity();
            var dsfMultiAssignActivity = new DsfMultiAssignActivity();
            dsfSequenceActivity.Activities.Add(dsfMultiAssignActivity);
            var dsfFindRecordsMultipleCriteriaActivity = new DsfFindRecordsMultipleCriteriaActivity();
            dsfSequenceActivity.Activities.Add(dsfFindRecordsMultipleCriteriaActivity);
            var dsfGatherSystemInformationActivity = new DsfGatherSystemInformationActivity();
            dsfSequenceActivity.Activities.Add(dsfGatherSystemInformationActivity);
            var dsfBaseConvertActivity = new DsfBaseConvertActivity();
            dsfSequenceActivity.Activities.Add(dsfBaseConvertActivity);
            var dsfCaseConvertActivity = new DsfCaseConvertActivity();
            dsfSequenceActivity.Activities.Add(dsfCaseConvertActivity);
            var dsfCalculateActivity = new DsfCalculateActivity();
            dsfSequenceActivity.Activities.Add(dsfCalculateActivity);
            var sequenceDesignerViewModel = new SequenceDesignerViewModel(CreateModelItem(dsfSequenceActivity));
            //------------Execute Test---------------------------
            var activityNames = sequenceDesignerViewModel.ActivityNames;
            //------------Assert Results-------------------------
            Assert.AreEqual(5, activityNames.Count);
            Assert.AreEqual(dsfMultiAssignActivity.DisplayName, activityNames[0]);
            Assert.AreEqual(dsfFindRecordsMultipleCriteriaActivity.DisplayName, activityNames[1]);
            Assert.AreEqual(dsfGatherSystemInformationActivity.DisplayName, activityNames[2]);
            Assert.AreEqual(dsfBaseConvertActivity.DisplayName, activityNames[3]);
            Assert.AreEqual("...", activityNames[4]);

            CollectionAssert.DoesNotContain(activityNames, dsfCaseConvertActivity.DisplayName);
            CollectionAssert.DoesNotContain(activityNames, dsfCalculateActivity.DisplayName);
        }
 public void SequenceDesignerViewModel_ActivityNames_When4_HasAllNames()
 {
     //------------Setup for test--------------------------
     var dsfSequenceActivity = new DsfSequenceActivity();
     var dsfMultiAssignActivity = new DsfMultiAssignActivity();
     dsfSequenceActivity.Activities.Add(dsfMultiAssignActivity);
     var dsfFindRecordsMultipleCriteriaActivity = new DsfFindRecordsMultipleCriteriaActivity();
     dsfSequenceActivity.Activities.Add(dsfFindRecordsMultipleCriteriaActivity);
     var dsfGatherSystemInformationActivity = new DsfGatherSystemInformationActivity();
     dsfSequenceActivity.Activities.Add(dsfGatherSystemInformationActivity);
     var dsfBaseConvertActivity = new DsfBaseConvertActivity();
     dsfSequenceActivity.Activities.Add(dsfBaseConvertActivity);
     var sequenceDesignerViewModel = new SequenceDesignerViewModel(CreateModelItem(dsfSequenceActivity));
     //------------Execute Test---------------------------
     var activityNames = sequenceDesignerViewModel.ActivityNames;
     //------------Assert Results-------------------------
     Assert.AreEqual(4, activityNames.Count);
     Assert.AreEqual(dsfMultiAssignActivity.DisplayName, activityNames[0]);
     Assert.AreEqual(dsfFindRecordsMultipleCriteriaActivity.DisplayName, activityNames[1]);
     Assert.AreEqual(dsfGatherSystemInformationActivity.DisplayName, activityNames[2]);
     Assert.AreEqual(dsfBaseConvertActivity.DisplayName, activityNames[3]);
 }
        public void GivenItContainsGatherSystemInfoAs(string parentName, string activityName, Table table)
        {
            var activity = new DsfGatherSystemInformationActivity { DisplayName = activityName };
            foreach(var tableRow in table.Rows)
            {
                var variable = tableRow["Variable"];

                CommonSteps.AddVariableToVariableList(variable);

                enTypeOfSystemInformationToGather systemInfo = (enTypeOfSystemInformationToGather)Dev2EnumConverter.GetEnumFromStringDiscription(tableRow["Selected"], typeof(enTypeOfSystemInformationToGather));
                activity.SystemInformationCollection.Add(new GatherSystemInformationTO(systemInfo, variable, 1));
            }

            CommonSteps.AddActivityToActivityList(parentName, activityName, activity);
        }
 static DsfGatherSystemInformationActivity GetGatherSystemInformationActivity()
 {
     var activity = new DsfGatherSystemInformationActivity();
     return activity;
 }
 public void GetFindMissingTypeExpectDataGridActivityType()
 {
     //------------Setup for test--------------------------
     var activity = new DsfGatherSystemInformationActivity();
     //------------Execute Test---------------------------
     var findMissingType = activity.GetFindMissingType();
     //------------Assert Results-------------------------
     Assert.AreEqual(enFindMissingType.DataGridActivity, findMissingType);
 }
 public void ForEachDesignerViewModel_MultipleItems_ModelItemsFormatListOfModelItemActivities_AddedToSequence()
 {
     //------------Setup for test--------------------------
     var modelItem = CreateModelItem();
     var viewModel = new ForeachDesignerViewModel(modelItem);
     var assignActivity = new DsfMultiAssignActivity();
     var gatherSystemInformationActivity = new DsfGatherSystemInformationActivity();
     var numberFormatActivity = new DsfNumberFormatActivity();
     var dataObject = new DataObject("ModelItemsFormat", new List<ModelItem> { ModelItemUtils.CreateModelItem(gatherSystemInformationActivity), ModelItemUtils.CreateModelItem(assignActivity), ModelItemUtils.CreateModelItem(numberFormatActivity) });
     //------------Execute Test---------------------------
     bool multipleItemsToSequence = viewModel.MultipleItemsToSequence(dataObject);
     //------------Assert Results-------------------------
     Assert.IsTrue(multipleItemsToSequence);
     //            var dsfSequenceActivity = multipleItemsToSequence.GetCurrentValue() as DsfSequenceActivity;
     //            Assert.IsNotNull(dsfSequenceActivity);
     //            Assert.AreEqual(3, dsfSequenceActivity.Activities.Count);
     //            Assert.AreEqual(gatherSystemInformationActivity, dsfSequenceActivity.Activities[0]);
     //            Assert.AreEqual(assignActivity, dsfSequenceActivity.Activities[1]);
     //            Assert.AreEqual(numberFormatActivity, dsfSequenceActivity.Activities[2]);
 }
示例#21
0
        /// <summary>
        /// Gets all the fields for a specific activity
        /// </summary>
        /// <param name="activity">The activity that the fields will be retrieved from</param>
        /// <returns>Returns all the fields in a list of strings</returns>
        public List <string> GetActivityFields(object activity)
        {
            List <string> results      = new List <string>();
            Type          activityType = activity.GetType();

            if (activityType == typeof(DsfBaseConvertActivity))
            {
                DsfBaseConvertActivity bcAct = activity as DsfBaseConvertActivity;
                if (bcAct != null)
                {
                    results.AddRange(InternalFindMissing(bcAct.ConvertCollection));
                }
            }
            else if (activityType == typeof(DsfCaseConvertActivity))
            {
                DsfCaseConvertActivity ccAct = activity as DsfCaseConvertActivity;
                if (ccAct != null)
                {
                    results.AddRange(InternalFindMissing(ccAct.ConvertCollection));
                }
            }
            else if (activityType == typeof(DsfMultiAssignActivity))
            {
                DsfMultiAssignActivity maAct = activity as DsfMultiAssignActivity;
                if (maAct != null)
                {
                    results.AddRange(InternalFindMissing(maAct.FieldsCollection));
                }
            }
            else if (activityType == typeof(DsfMultiAssignObjectActivity))
            {
                DsfMultiAssignObjectActivity maAct = activity as DsfMultiAssignObjectActivity;
                if (maAct != null)
                {
                    results.AddRange(InternalFindMissing(maAct.FieldsCollection));
                }
            }
            else if (activityType == typeof(DsfGatherSystemInformationActivity))
            {
                DsfGatherSystemInformationActivity maAct = activity as DsfGatherSystemInformationActivity;
                if (maAct != null)
                {
                    results.AddRange(InternalFindMissing(maAct.SystemInformationCollection));
                }
            }
            else if (activityType == typeof(DsfSqlServerDatabaseActivity))
            {
                var maAct = activity as DsfSqlServerDatabaseActivity;
                if (maAct != null)
                {
                    if (maAct.Inputs != null)
                    {
                        results.AddRange(InternalFindMissing(maAct.Inputs));
                    }
                    if (maAct.Outputs != null)
                    {
                        results.AddRange(InternalFindMissing(maAct.Outputs));
                    }
                    if (!string.IsNullOrEmpty(maAct.OnErrorVariable))
                    {
                        results.Add(maAct.OnErrorVariable);
                    }

                    if (!string.IsNullOrEmpty(maAct.OnErrorWorkflow))
                    {
                        results.Add(maAct.OnErrorWorkflow);
                    }
                }
            }
            else if (activityType == typeof(DsfMySqlDatabaseActivity))
            {
                var maAct = activity as DsfMySqlDatabaseActivity;
                if (maAct != null)
                {
                    if (maAct.Inputs != null)
                    {
                        results.AddRange(InternalFindMissing(maAct.Inputs));
                    }
                    if (maAct.Outputs != null)
                    {
                        results.AddRange(InternalFindMissing(maAct.Outputs));
                    }
                    if (!string.IsNullOrEmpty(maAct.OnErrorVariable))
                    {
                        results.Add(maAct.OnErrorVariable);
                    }

                    if (!string.IsNullOrEmpty(maAct.OnErrorWorkflow))
                    {
                        results.Add(maAct.OnErrorWorkflow);
                    }
                }
            }
            else if (activityType == typeof(DsfPostgreSqlActivity))
            {
                var maAct = activity as DsfPostgreSqlActivity;
                if (maAct != null)
                {
                    if (maAct.Inputs != null)
                    {
                        results.AddRange(InternalFindMissing(maAct.Inputs));
                    }
                    if (maAct.Outputs != null)
                    {
                        results.AddRange(InternalFindMissing(maAct.Outputs));
                    }
                    if (!string.IsNullOrEmpty(maAct.OnErrorVariable))
                    {
                        results.Add(maAct.OnErrorVariable);
                    }

                    if (!string.IsNullOrEmpty(maAct.OnErrorWorkflow))
                    {
                        results.Add(maAct.OnErrorWorkflow);
                    }
                }
            }
            else if (activityType == typeof(DsfOracleDatabaseActivity))
            {
                var maAct = activity as DsfOracleDatabaseActivity;
                if (maAct != null)
                {
                    if (maAct.Inputs != null)
                    {
                        results.AddRange(InternalFindMissing(maAct.Inputs));
                    }
                    if (maAct.Outputs != null)
                    {
                        results.AddRange(InternalFindMissing(maAct.Outputs));
                    }
                    if (!string.IsNullOrEmpty(maAct.OnErrorVariable))
                    {
                        results.Add(maAct.OnErrorVariable);
                    }

                    if (!string.IsNullOrEmpty(maAct.OnErrorWorkflow))
                    {
                        results.Add(maAct.OnErrorWorkflow);
                    }
                }
            }
            else if (activityType == typeof(DsfODBCDatabaseActivity))
            {
                var maAct = activity as DsfODBCDatabaseActivity;
                if (maAct != null)
                {
                    if (maAct.Inputs != null)
                    {
                        results.AddRange(InternalFindMissing(maAct.Inputs));
                    }
                    if (maAct.CommandText != null)
                    {
                        results.Add(maAct.CommandText);
                    }
                    if (maAct.Outputs != null)
                    {
                        results.AddRange(InternalFindMissing(maAct.Outputs));
                    }
                    if (!string.IsNullOrEmpty(maAct.OnErrorVariable))
                    {
                        results.Add(maAct.OnErrorVariable);
                    }

                    if (!string.IsNullOrEmpty(maAct.OnErrorWorkflow))
                    {
                        results.Add(maAct.OnErrorWorkflow);
                    }
                }
            }
            else if (activityType == typeof(DsfWebPostActivity))
            {
                var maAct = activity as DsfWebPostActivity;
                if (maAct != null)
                {
                    if (maAct.Inputs != null)
                    {
                        results.AddRange(InternalFindMissing(maAct.Inputs));
                    }

                    if (maAct.QueryString != null)
                    {
                        results.Add(maAct.QueryString);
                    }
                    if (maAct.PostData != null)
                    {
                        results.Add(maAct.PostData);
                    }
                    if (maAct.Headers != null)
                    {
                        foreach (var nameValue in maAct.Headers)
                        {
                            results.Add(nameValue.Name);
                            results.Add(nameValue.Value);
                        }
                    }
                    if (!string.IsNullOrEmpty(maAct.OnErrorVariable))
                    {
                        results.Add(maAct.OnErrorVariable);
                    }
                    if (!string.IsNullOrEmpty(maAct.OnErrorWorkflow))
                    {
                        results.Add(maAct.OnErrorWorkflow);
                    }
                    if (maAct.IsObject)
                    {
                        if (!string.IsNullOrEmpty(maAct.ObjectName))
                        {
                            results.Add(maAct.ObjectName);
                        }
                    }
                    else
                    {
                        if (maAct.Outputs != null)
                        {
                            results.AddRange(InternalFindMissing(maAct.Outputs));
                        }
                    }
                }
            }
            else if (activityType == typeof(DsfWebDeleteActivity))
            {
                var maAct = activity as DsfWebDeleteActivity;
                if (maAct != null)
                {
                    if (maAct.Inputs != null)
                    {
                        results.AddRange(InternalFindMissing(maAct.Inputs));
                    }
                    if (maAct.QueryString != null)
                    {
                        results.Add(maAct.QueryString);
                    }
                    if (maAct.Headers != null)
                    {
                        foreach (var nameValue in maAct.Headers)
                        {
                            results.Add(nameValue.Name);
                            results.Add(nameValue.Value);
                        }
                    }
                    if (!string.IsNullOrEmpty(maAct.OnErrorVariable))
                    {
                        results.Add(maAct.OnErrorVariable);
                    }
                    if (maAct.IsObject)
                    {
                        if (!string.IsNullOrEmpty(maAct.ObjectName))
                        {
                            results.Add(maAct.ObjectName);
                        }
                    }
                    else
                    {
                        if (maAct.Outputs != null)
                        {
                            results.AddRange(InternalFindMissing(maAct.Outputs));
                        }
                    }
                    if (!string.IsNullOrEmpty(maAct.OnErrorWorkflow))
                    {
                        results.Add(maAct.OnErrorWorkflow);
                    }
                }
            }
            else if (activityType == typeof(DsfWebPutActivity))
            {
                var maAct = activity as DsfWebPutActivity;
                if (maAct != null)
                {
                    if (maAct.Inputs != null)
                    {
                        results.AddRange(InternalFindMissing(maAct.Inputs));
                    }
                    if (maAct.QueryString != null)
                    {
                        results.Add(maAct.QueryString);
                    }
                    if (maAct.PutData != null)
                    {
                        results.Add(maAct.PutData);
                    }
                    if (maAct.Headers != null)
                    {
                        foreach (var nameValue in maAct.Headers)
                        {
                            results.Add(nameValue.Name);
                            results.Add(nameValue.Value);
                        }
                    }
                    if (!string.IsNullOrEmpty(maAct.OnErrorVariable))
                    {
                        results.Add(maAct.OnErrorVariable);
                    }
                    if (maAct.IsObject)
                    {
                        if (!string.IsNullOrEmpty(maAct.ObjectName))
                        {
                            results.Add(maAct.ObjectName);
                        }
                    }
                    else
                    {
                        if (maAct.Outputs != null)
                        {
                            results.AddRange(InternalFindMissing(maAct.Outputs));
                        }
                    }
                    if (!string.IsNullOrEmpty(maAct.OnErrorWorkflow))
                    {
                        results.Add(maAct.OnErrorWorkflow);
                    }
                }
            }
            else if (activityType == typeof(DsfWebGetActivity))
            {
                var maAct = activity as DsfWebGetActivity;
                if (maAct != null)
                {
                    if (maAct.Inputs != null)
                    {
                        results.AddRange(InternalFindMissing(maAct.Inputs));
                    }
                    if (maAct.QueryString != null)
                    {
                        results.Add(maAct.QueryString);
                    }
                    if (maAct.Headers != null)
                    {
                        foreach (var nameValue in maAct.Headers)
                        {
                            results.Add(nameValue.Name);
                            results.Add(nameValue.Value);
                        }
                    }
                    if (!string.IsNullOrEmpty(maAct.ObjectName))
                    {
                        results.Add(maAct.ObjectName);
                    }
                    if (!string.IsNullOrEmpty(maAct.OnErrorVariable))
                    {
                        results.Add(maAct.OnErrorVariable);
                    }
                    if (maAct.IsObject)
                    {
                        if (!string.IsNullOrEmpty(maAct.ObjectName))
                        {
                            results.Add(maAct.ObjectName);
                        }
                    }
                    else
                    {
                        if (maAct.Outputs != null)
                        {
                            results.AddRange(InternalFindMissing(maAct.Outputs));
                        }
                    }
                    if (!string.IsNullOrEmpty(maAct.OnErrorWorkflow))
                    {
                        results.Add(maAct.OnErrorWorkflow);
                    }
                }
            }
            else if (activityType == typeof(DsfDotNetDllActivity))
            {
                var maAct = activity as DsfDotNetDllActivity;
                if (maAct != null)
                {
                    if (maAct.Inputs != null)
                    {
                        results.AddRange(InternalFindMissing(maAct.Inputs));
                    }
                    if (!string.IsNullOrEmpty(maAct.OnErrorVariable))
                    {
                        results.Add(maAct.OnErrorVariable);
                    }
                    if (maAct.IsObject)
                    {
                        if (!string.IsNullOrEmpty(maAct.ObjectName))
                        {
                            results.Add(maAct.ObjectName);
                        }
                    }
                    else
                    {
                        if (maAct.Outputs != null)
                        {
                            results.AddRange(InternalFindMissing(maAct.Outputs));
                        }
                    }
                    if (!string.IsNullOrEmpty(maAct.OnErrorWorkflow))
                    {
                        results.Add(maAct.OnErrorWorkflow);
                    }
                }
            }
            else if (activityType == typeof(DsfEnhancedDotNetDllActivity))
            {
                var maAct = activity as DsfEnhancedDotNetDllActivity;
                if (maAct != null)
                {
                    if (maAct.ConstructorInputs != null)
                    {
                        results.AddRange(InternalFindMissing(maAct.ConstructorInputs));
                    }
                    if (!string.IsNullOrEmpty(maAct.OnErrorVariable))
                    {
                        results.Add(maAct.OnErrorVariable);
                    }

                    if (maAct.MethodsToRun != null)
                    {
                        foreach (var pluginAction in maAct.MethodsToRun)
                        {
                            if (pluginAction?.Inputs != null)
                            {
                                results.AddRange(InternalFindMissing(pluginAction.Inputs));
                            }
                            if (!string.IsNullOrEmpty(pluginAction?.OutputVariable))
                            {
                                results.Add(pluginAction.OutputVariable);
                            }
                        }
                    }
                    if (maAct.IsObject)
                    {
                        if (!string.IsNullOrEmpty(maAct.ObjectName))
                        {
                            results.Add(maAct.ObjectName);
                        }
                    }
                    else
                    {
                        if (maAct.Outputs != null)
                        {
                            results.AddRange(InternalFindMissing(maAct.Outputs));
                        }
                    }
                    if (!string.IsNullOrEmpty(maAct.OnErrorWorkflow))
                    {
                        results.Add(maAct.OnErrorWorkflow);
                    }
                }
            }
            else if (activityType == typeof(DsfComDllActivity))
            {
                var maAct = activity as DsfComDllActivity;
                if (maAct != null)
                {
                    if (maAct.Inputs != null)
                    {
                        results.AddRange(InternalFindMissing(maAct.Inputs));
                    }
                    if (!string.IsNullOrEmpty(maAct.OnErrorVariable))
                    {
                        results.Add(maAct.OnErrorVariable);
                    }
                    if (maAct.IsObject)
                    {
                        if (!string.IsNullOrEmpty(maAct.ObjectName))
                        {
                            results.Add(maAct.ObjectName);
                        }
                    }
                    else
                    {
                        if (maAct.Outputs != null)
                        {
                            results.AddRange(InternalFindMissing(maAct.Outputs));
                        }
                    }
                    if (!string.IsNullOrEmpty(maAct.OnErrorWorkflow))
                    {
                        results.Add(maAct.OnErrorWorkflow);
                    }
                }
            }
            else if (activityType == typeof(DsfWcfEndPointActivity))
            {
                var maAct = activity as DsfWcfEndPointActivity;
                if (maAct != null)
                {
                    if (maAct.Inputs != null)
                    {
                        results.AddRange(InternalFindMissing(maAct.Inputs));
                    }

                    if (!string.IsNullOrEmpty(maAct.OnErrorVariable))
                    {
                        results.Add(maAct.OnErrorVariable);
                    }
                    if (maAct.IsObject)
                    {
                        if (!string.IsNullOrEmpty(maAct.ObjectName))
                        {
                            results.Add(maAct.ObjectName);
                        }
                    }
                    else
                    {
                        if (maAct.Outputs != null)
                        {
                            results.AddRange(InternalFindMissing(maAct.Outputs));
                        }
                    }
                    if (!string.IsNullOrEmpty(maAct.OnErrorWorkflow))
                    {
                        results.Add(maAct.OnErrorWorkflow);
                    }
                }
            }
            return(results);
        }