public void RemoveImageLike_ValidLikeId_Test()
        {
            var init = new InitializeMockContext();
            var mock = init.mock;

            var controller = new LikesService(mock.Object);

            controller.RemoveImageLike(2, 1);
            mock.Verify(m => m.SaveChanges(), Times.Once());
        }
        public void RemoveImageLike_Counting_Test()
        {
            var init    = new InitializeMockContext();
            var mock    = init.mock;
            var imageId = 1;
            var expectedLikeCountInt = mock.Object.Posts.Where(x => x.Id == imageId).First().LikeCount;

            var controller = new LikesService(mock.Object);

            controller.RemoveImageLike(2, 1);
            mock.Verify(m => m.SaveChanges(), Times.Once());

            Assert.AreEqual(expectedLikeCountInt - 1, mock.Object.Posts.Where(x => x.Id == imageId).First().LikeCount);
        }