コード例 #1
0
        public void AddLikeToPost_InputDataIsNull_Throws()
        {
            // Arrange
            var         mock        = new Mock <IUnitOfWork>();
            PostLikeDTO postLikeDTO = null;

            // Act
            var likeService = new LikeService(mock.Object);

            // Assert
            Assert.ThrowsException <ArgumentNullException>(() => likeService.AddLikeToPost(postLikeDTO));
        }