Ejemplo n.º 1
0
 public void GivenThereIsSomePostWithComment()
 {
     GivenThereIsSomePost();
     CommentService.AddComment(CommentBuilder.GenerateComment());
 }
Ejemplo n.º 2
0
 public void WhenIDeleteTheComment()
 {
     GivenThereIsSomePost();
     CommentService.DeleteComment(CommentBuilder.GenerateComment());
 }
Ejemplo n.º 3
0
        public void ThenCommentIsNotDisplayedUnderThePost(string yesOrNot)
        {
            GivenThereIsSomePost();
            bool areDisplayed = yesOrNot != "not";

            if (areDisplayed)
            {
                Assert.IsTrue(CommentService.IsCommentDisplayed(CommentService.AddComment(CommentBuilder.GenerateComment())));
            }
            else
            {
                Assert.IsFalse(CommentService.IsCommentDisplayed(CommentService.AddComment(CommentBuilder.GenerateComment())));
            }
        }