public void CommentIsAddedWithVisibilityGroup() { Sut.AddComment("foobar", "bar"); connection.Received().Post( Arg.Is <AddCommentToIssueRequest>(x => x.RestResource.Contains("group=bar"))); }
public void CommentsAreFetchedAgainAfterAddingComment() { connection.Get <CommentCollection>(Arg.Any <GetCommentsOfAnIssueRequest>()).Returns(commentCollection); IEnumerable <IComment> comments = Sut.Comments; Sut.AddComment("foobar"); comments = Sut.Comments; connection.Received(2).Get <CommentCollection>(Arg.Any <GetCommentsOfAnIssueRequest>()); }
public void ConnectionIsCalledWithAddComment() { Sut.AddComment("foobar"); connection.Received().Post(Arg.Any <AddCommentToIssueRequest>()); }