public void ShouldCancelRental()
        {
            rentalRepositoryMock.Setup(x => x.Find(It.IsAny <int>())).Returns(new Rental {
                Id = 1, Status = RentalStatus.Reserved
            });

            var response = rentalService.Cancel(1);

            rentalRepositoryMock.Verify(x => x.Update(It.IsAny <Rental>()), Times.Once);
            repositoryMock.Verify(x => x.Save(), Times.Once);
            Assert.False(response.HasErrors());
            Assert.AreEqual(response.Messages.Count(x => x.Type == MessageType.Success), 1);
            Assert.AreEqual(response.Messages.Count(x => x.Code == Constants.RENTAL_CANCELLED), 1);
        }