Beispiel #1
0
        public static string buildOptions(List <string> Categories)
        {
            string source = "";

            Categories.Sort();

            foreach (string c in Categories)
            {
                source += SourceBuilder.BuildSimple(CategoryHtml.GetOptionSource(), new string[] { ExtentFlag.GetPlaceHolder("testCategory"), ExtentFlag.GetPlaceHolder("testCategoryU") }, new string[] { c, c.ToLower().Replace(" ", "") });
            }

            return(source);
        }
Beispiel #2
0
        public static string buildOptions(List <string> Categories)
        {
            string text = string.Empty;

            Categories.Sort();
            foreach (var current in Categories)
            {
                text += SourceBuilder.Build(CategoryHtml.GetOptionSource(), new string[]
                {
                    UnifiedReportFlag.GetPlaceHolder("testCategory"),
                    UnifiedReportFlag.GetPlaceHolder("testCategoryU")
                }, new string[]
                {
                    current,
                    current.ToLower().Replace(" ", "")
                });
            }
            return(text);
        }
        public static string buildOptions(List <string> Categories)
        {
            string source = "";

            Categories.Sort();

            var catFlags = new string[] {
                ExtentFlag.GetPlaceHolder("testCategory"),
                ExtentFlag.GetPlaceHolder("testCategoryU")
            };

            Categories.ForEach(c =>
            {
                var catValues = new string[] {
                    c,
                    c.ToLower().Replace(" ", "")
                };

                source += SourceBuilder.Build(CategoryHtml.GetOptionSource(), catFlags, catValues);
            });

            return(source);
        }