Esempio n. 1
0
        public async Task LikeExist_LikeFound_ReturnsTrue()
        {
            //Arrange
            var like = new Like
            {
                ImageId = Guid.NewGuid().ToString(),
                UserId  = Guid.NewGuid().ToString()
            };

            _uowMock.Setup(x => x.LikeRepository.Exist(GetLikeValue(like)))
            .ReturnsAsync(true);
            //Act
            var result = await _likesService.LikeExist(like.ImageId, like.UserId);

            //Assert
            Assert.True(result);
        }