public void GetAvailability_For_Flight_By_Id_Success()
        {
            var res = controller.Get_Availability_For_Flight(1) as OkObjectResult;

            Assert.IsNotNull(res);
            Assert.AreEqual(200, res.StatusCode);
            Assert.IsInstanceOf <int>(res.Value);
        }
        public void Get_Availability_For_Flight_Failure_Test()
        {
            mock.Setup(x => x.AvailableCount(It.IsAny <int>())).Returns(null);
            var controller = new AvailabilityController(mock.Object);
            var result     = controller.Get_Availability_For_Flight(1) as StatusCodeResult;

            Assert.IsNull(result);
        }
        public void Get_Availability_For_Flight_Success_Test()
        {
            mock.Setup(x => x.AvailableCount(It.IsAny <int>())).Returns(It.IsAny <int>());
            var controller = new AvailabilityController(mock.Object);
            var result     = controller.Get_Availability_For_Flight(1) as OkObjectResult;

            Assert.IsNotNull(result);
            Assert.AreEqual(200, result.StatusCode);
        }