public void Reduce_Availability_Failure_Test()
        {
            mock.Setup(x => x.Reduce(It.IsAny <int>())).Returns(false);
            var controller = new AvailabilityController(mock.Object);
            var result     = controller.Reduce_Availability(1) as StatusCodeResult;

            Assert.AreEqual(404, result.StatusCode);
        }
        public void Reduce_Availability_Success_Test()
        {
            mock.Setup(x => x.Reduce(It.IsAny <int>())).Returns(true);
            var controller = new AvailabilityController(mock.Object);
            var result     = controller.Reduce_Availability(1) as OkResult;

            Assert.AreEqual(200, result.StatusCode);
        }
        public void Reduce_Availability_Success_Test()
        {
            var res = controller.Reduce_Availability(2) as StatusCodeResult;

            Assert.AreEqual(200, res.StatusCode);
        }