public void GetByFlight_Found()
        {
            string flightNumber = "PZ696";
            var    result       = contract.GetByFlight(flightNumber);

            Assert.IsNotNull(result);
            Assert.AreNotEqual(0, result.Count);
        }
        public void GetAll_RepositoryInvalidResponse()
        {
            mockBookingRepository = new Mock <IRepository <Booking> >();
            mockBookingRepository.Setup(x => x.GetAll()).Returns((List <Booking>)null);

            contract = new PassengersContract(mockPersonRepository.Object, mockBookingRepository.Object);

            string flightNumber = "PZ696";
            var    result       = contract.GetByFlight(flightNumber);
        }
 /// <summary>
 /// Gets all the passengers by flight Number
 /// </summary>
 /// <param name="flightNumber">Passenger's Flight Number</param>
 /// <returns>List of Passenger</returns>
 public HttpResponseMessage GetByFlight(string flightNumber) => CreateResponse(() =>
                                                                               passengersContract.GetByFlight(flightNumber)
                                                                               );