Esempio n. 1
0
 public UnifiedTest AssignCategory(params string[] CategoryName)
 {
     (from c in CategoryName.ToList <string>()
      select c.ToString()).Distinct <string>().ToList <string>().ForEach(delegate(string c)
     {
         this.test.CategoryList.Add(new Category(c));
     });
     return(this);
 }
Esempio n. 2
0
        /// <summary>
        /// Assigns category to test
        /// </summary>
        /// <param name="CategoryName">Category</param>
        /// <returns>ExtentTest object</returns>
        public ExtentTest AssignCategory(params string[] CategoryName)
        {
            CategoryName
            .ToList()
            .Select(c => c.ToString())
            .Distinct()
            .ToList()
            .ForEach(c => test.CategoryList.Add(new Category(c)));

            return(this);
        }