Ejemplo n.º 1
0
        //_______________________________________________________________________________________________________________________
        public override string AdditionalInfo()
        {
            string sMenu, sMenuLnk, additionalInfo;

            AdditionalLinkedInfo.Clear();

            sMenu          = (Config == null ? " (set)" : " (remove)"); sMenuLnk = (Config == null ? $"{TestObjectBase.SetActionLinkHeader}{Link}:config" : $"{TestObjectBase.RemoveActionLinkHeader}{Link}:{Config.Link}");
            additionalInfo = AddInfoItem("Config", Config?.Name, true, sMenu: sMenu); AddLinkInfoItem(additionalInfo, Config, sMenu: sMenu, sMenuLnk: sMenuLnk);

            sMenu           = (Script == null ? " (set)" : " (remove)"); sMenuLnk = (Script == null ? $"{TestObjectBase.SetActionLinkHeader}{Link}:script" : $"{TestObjectBase.RemoveActionLinkHeader}{Link}:{Script.Link}");
            additionalInfo += AddInfoItem("Script", Script?.Name, sMenu: sMenu); AddLinkInfoItem(additionalInfo, Script, sMenu: sMenu, sMenuLnk: sMenuLnk);

            sMenu           = (SourceManagementAgent == null ? " (set)" : " (remove)"); sMenuLnk = (SourceManagementAgent == null ? $"{TestObjectBase.SetActionLinkHeader}{Link}:managementagent" : $"{TestObjectBase.RemoveActionLinkHeader}{Link}:{SourceManagementAgent.Link}");
            additionalInfo += AddInfoItem("Source MA", SourceManagementAgent?.Name, sMenu: sMenu); AddLinkInfoItem(additionalInfo, SourceManagementAgent, sMenu: sMenu, sMenuLnk: sMenuLnk);

            sMenu           = (InputSet == null ? " (set)" : " (remove)"); sMenuLnk = (InputSet == null ? $"{TestObjectBase.SetActionLinkHeader}{Link}:inputset" : $"{TestObjectBase.RemoveActionLinkHeader}{Link}:{InputSet.Link}");
            additionalInfo += AddInfoItem("Input Set", InputSet?.Name, sMenu: sMenu); AddLinkInfoItem(additionalInfo, InputSet, sMenu: sMenu, sMenuLnk: sMenuLnk);

            additionalInfo += AddInfoItem("DN", InputSet?.DistinguishedName);

            sMenu           = " (add)"; sMenuLnk = $"{TestObjectBase.AddActionLinkHeader}{Link}:outputset";
            additionalInfo += AddInfoItem("Output Sets", OutputSets?.Count.ToString(), sMenu: sMenu);
            AddLinkInfoItem(additionalInfo, null, sMenu: sMenu, sMenuLnk: sMenuLnk);
            foreach (OutputSet t in OutputSets)
            {
                sMenu           = " (remove)"; sMenuLnk = $"{TestObjectBase.RemoveActionLinkHeader}{Link}:{t.Link}";
                additionalInfo += AddInfoItem("Output Set", t.Name, SubItem: true, sMenu: sMenu);
                AddLinkInfoItem(additionalInfo, t, sMenu: sMenu, sMenuLnk: sMenuLnk);
            }
            return(additionalInfo);
        }
        //_______________________________________________________________________________________________________________________
        public override string AdditionalInfo()
        {
            AdditionalLinkedInfo.Clear();
            string sMenu = (Source == null ? " (set)" : " (remove)"), sMenuLnk = (Source == null ? $"{TestObjectBase.SetActionLinkHeader}{Link}:source" : $"{TestObjectBase.RemoveActionLinkHeader}{Link}:{Source.Link}");
            string additionalInfo = AddInfoItem("Source", Source?.Name, true, sMenu: sMenu);

            AddLinkInfoItem(additionalInfo, Source, sMenu: sMenu, sMenuLnk: sMenuLnk);
            return(additionalInfo);
        }
Ejemplo n.º 3
0
 //_______________________________________________________________________________________________________________________
 internal void AddLinkInfoItem(string additionalInfo, TestObjectBase o, string sMenu = "", string sMenuLnk = "")
 {
     if (o != null)
     {
         AdditionalLinkedInfo.Add(new Tuple <int, int, string>(additionalInfo.Length - (sMenu.Length) - o.Name.Length - 1, o.Name.Length, o.Link));
     }
     if (sMenu != "" && sMenuLnk != "")
     {
         AdditionalLinkedInfo.Add(new Tuple <int, int, string>(additionalInfo.Length - (sMenu.Length) + 1, sMenu.Length - 3, sMenuLnk));
     }
 }
Ejemplo n.º 4
0
        //_______________________________________________________________________________________________________________________
        public override string AdditionalInfo()
        {
            AdditionalLinkedInfo.Clear();
            string sMenu = " (add)", sMenuLnk = $"{TestObjectBase.AddActionLinkHeader}{Link}:groups";
            string additionalInfo = AddInfoItem("Total groups", Groups.Count.ToString(), true, sMenu: sMenu);

            AddLinkInfoItem(additionalInfo, null, sMenu: sMenu, sMenuLnk: sMenuLnk);
            foreach (Group t in Groups)
            {
                sMenu           = " (remove)"; sMenuLnk = $"{TestObjectBase.RemoveActionLinkHeader}{Link}:{t.Link}";
                additionalInfo += AddInfoItem("Group", t.Name, false, true, sMenu: sMenu);
                AddLinkInfoItem(additionalInfo, t, sMenu: sMenu, sMenuLnk: sMenuLnk);
            }
            return(additionalInfo);
        }
Ejemplo n.º 5
0
        //_______________________________________________________________________________________________________________________
        public override string AdditionalInfo()
        {
            AdditionalLinkedInfo.Clear();
            Enum.TryParse(Type, out AllowedTypes curtype);

            string sMenu = (DestinationManagementAgent == null ? " (set)" : " (remove)"), sMenuLnk = (DestinationManagementAgent == null ? $"{TestObjectBase.SetActionLinkHeader}{Link}:managementagent" : $"{TestObjectBase.RemoveActionLinkHeader}{Link}:{DestinationManagementAgent.Link}");

            // Si el MA no es necesario quita la opción de establecerlo
            if (DestinationManagementAgent == null && !MARequired)
            {
                sMenu = sMenuLnk = "";
            }

            string additionalInfo = AddInfoItem("MA " + (MARequired ? "(Required)" : "(Not Required)"), DestinationManagementAgent?.Name, true, sMenu: sMenu);

            AddLinkInfoItem(additionalInfo, DestinationManagementAgent, sMenu: sMenu, sMenuLnk: sMenuLnk);
            additionalInfo += AddInfoItem("Detail " + (DetailRequired ? "(Required)" : "(Not Required)"), DetailLines + " lines");
            return(additionalInfo);
        }