public bool CompareComments(Comment C1, Comment C2)
 {
     C1.WriteToConsole();
     C2.WriteToConsole();
     //сравнивает все поля основной информации.
     return C1.message == C2.message
         && C1.author == C2.author;
 }
        public void Edit_Candidate_Comment(Comment comment)
        {
            //клик по первому кандидату
            app.hiringHelper.openFirstCandidate();
            //переход на вкладку комментариев
            app.userHelper.clickTabByName("Комментарии");
            //добавление комментария
            app.commentHelper.addComment(comment);

            Comment testcomment = app.commentHelper.getComment();
            //Проверка соответствия двух комментариев.
            Assert.IsTrue(app.commentHelper.CompareComments(comment, testcomment));
        }
 public Comment getComment()
 {
     Comment comment = new Comment();
     comment.message = pages.commentsTab.getMessage();
     return comment;
 }
 public void addComment(Comment comment)
 {
     pages.commentsTab.ensurePageLoaded();
     pages.commentsTab.addComment(comment.message);
 }