public void GivenThereIsSomePostWithComment() { GivenThereIsSomePost(); CommentService.AddComment(CommentBuilder.GenerateComment()); }
public void WhenIDeleteTheComment() { GivenThereIsSomePost(); CommentService.DeleteComment(CommentBuilder.GenerateComment()); }
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()))); } }