public static List <ComponentNode> CreateSimplePeakDetectTestData() { List <ComponentNode> ret = new List <ComponentNode>(); Guid startupId = Guid.NewGuid(); var startupParam = new StartupComponentNode() { Id = startupId, //BatchInitializeExcutionName = "BatchInitializer", // CompopnentExcutionName = "ClientStartupProcess", ComponentName = "Client Startup Component", StartNode = true, TreeExecutionTag = "execution tag abc", }; ret.Add(startupParam); Guid helloWorldId = Guid.NewGuid(); HelloWorldNode helloWorldNode = new HelloWorldNode() { Id = helloWorldId, CompopnentExcutionName = "HelloWorldProcess", ComponentName = "Hello World ", StartNode = false }; helloWorldNode.ParentIdList.Add(startupId); ret.Add(helloWorldNode); return(ret); }
public static List <ComponentNode> CreateTreeTopHeloWoldTestData() { List <ComponentNode> ret = new List <ComponentNode>(); Guid startupId = Guid.NewGuid(); var startupParam = new StartupComponentNode() { Id = startupId, //BatchInitializeExcutionName = "BatchInitializer", // CompopnentExcutionName = "ClientStartupProcess", ComponentName = "Client Startup Component", StartNode = true, TreeExecutionTag = "execution tag abc", }; ret.Add(startupParam); Guid treeTopId = Guid.NewGuid(); TreeTopNode treeTopNode = new TreeTopNode() { Id = treeTopId, CompopnentExcutionName = "TreeTopExecutable", ComponentName = "TreeTop Executable ", StartNode = false }; treeTopNode.ParentIdList.Add(startupId); ret.Add(treeTopNode); Guid helloWorldId = Guid.NewGuid(); HelloWorldNode helloWorldNode = new HelloWorldNode() { Id = helloWorldId, CompopnentExcutionName = "HelloWorldProcess", ComponentName = "Hello World ", StartNode = false }; helloWorldNode.ParentIdList.Add(treeTopId); ret.Add(helloWorldNode); //Guid groupId = Guid.NewGuid(); //compParam = new ClientComponentNode() //{ // Id = ClientExcutableComponentBBCId, // CompopnentExcutionName = "ClientGroupExecutable", // ComponentName = "group executable", // StartNode = false, // CompNodeValidation = NodeValidationType.Group //}; //compParam.ParentIdList.Add(ClientExcutableComponentBBCId); //ret.Add(compParam); return(ret); }