public void AddComment_comentCreatedWithCorrectParamValue() { // Arrange const int userId = 2; const int postId = 2; const string content = "abc"; var commentBo = new CommentBo(_commentRepo, _commentLikesRepo); // Act commentBo.AddComment(userId, postId, content); // Assert _commentRepo .Received(1) .Create(Arg.Is<Comment>(x => x.UserId == userId && x.PostId == postId && x.Content == content)); }