public void T001_ChangeVisibility_NumberNotFound_False()
        {
            // Arrange
            _advertRepository.Setup(x => x.Find(It.IsAny <int>())).Returns((Advert)null);

            // Act
            var updateAdvertService = new UpdateAdvertService(_advertRepository.Object,
                                                              _advertTypeRepository.Object, _findPhotosById.Object, _photoService.Object);

            var result = updateAdvertService.ChangeVisibility(1);

            // Assert
            Assert.IsFalse(result);
        }
        public void T003_ChangeVisibility_AdvertIsHidden_True()
        {
            // Arrange
            _advertRepository.Setup(x => x.Find(It.IsAny <int>())).Returns(new Advert()
            {
                Visible = false
            });

            // Act
            var updateAdvertService = new UpdateAdvertService(_advertRepository.Object,
                                                              _advertTypeRepository.Object, _findPhotosById.Object, _photoService.Object);
            var result = updateAdvertService.ChangeVisibility(1);

            // Assert
            Assert.IsTrue(result);
        }