/// <summary> /// Assigns an author /// </summary> /// <param name="author"><see cref="Author"/></param> /// <returns>A <see cref="ExtentTest"/> object</returns> public ExtentTest AssignAuthor(params string[] author) { if (author == null || author.Length == 0) { return(this); } author.ToList().Where(c => !string.IsNullOrEmpty(c)).ToList().ForEach(a => { var objAuthor = new Author(a.Replace(" ", "")); _test.AuthorContext().Add(objAuthor); _extent.AssignAuthor(_test, objAuthor); }); return(this); }