public static ProcessTemplateDO TestProcessTemplateWithStartingProcessNodeTemplateAndActionList()
        {
            var curProcessTemplateDO = new ProcessTemplateDO
            {
                Id                   = 1,
                Description          = "DO-1124 Proper  deletion of ProcessTemplate",
                Name                 = "TestProcessTemplateWithStartingProcessNodeTemplates",
                ProcessTemplateState = ProcessTemplateState.Active,
            };

            var curProcessNodeTemplateDO = new ProcessNodeTemplateDO()
            {
                Id             = 1,
                Name           = string.Format("curProcessNodeTemplateDO-{0}", 1),
                ParentActivity = curProcessTemplateDO,
                StartingProcessNodeTemplate = true
            };

            curProcessTemplateDO.Activities.Add(curProcessNodeTemplateDO);

            var curImmediateActionList = FixtureData.TestActionList_ImmediateActions();

            curProcessNodeTemplateDO.Activities.AddRange(curImmediateActionList);

            return(curProcessTemplateDO);
        }
        public static ProcessTemplateDO TestProcessTemplateNoMatchingParentActivity()
        {
            var curProcessTemplateDO = new ProcessTemplateDO
            {
                Id                   = 1,
                Description          = "DO-1040 Process Template Test",
                Name                 = "Poress template",
                ProcessTemplateState = ProcessTemplateState.Active,
            };

            for (int i = 1; i <= 2; ++i)
            {
                var curProcessNodeTemplateDO = new ProcessNodeTemplateDO()
                {
                    Id             = i,
                    Name           = string.Format("curProcessNodeTemplateDO-{0}", i),
                    ParentActivity = curProcessTemplateDO,
                    Activities     = FixtureData.TestActionListParentActivityID12()
                };
                curProcessTemplateDO.Activities.Add(curProcessNodeTemplateDO);
            }

            return(curProcessTemplateDO);
        }