public void Get_Found()
        {
            int id     = 91;
            var result = contract.Get(id);

            Assert.IsNotNull(result);
            Assert.AreEqual(id, result.Id);
        }
        public void Get_RepositoryException()
        {
            mockPersonRepository = new Mock <IRepository <Person> >();
            mockPersonRepository.Setup(x => x.Get(It.IsAny <int>())).Throws(new Exception("Repository not found"));

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

            int id     = 91;
            var result = contract.Get(id);
        }
 /// <summary>
 /// Gets person by Id
 /// </summary>
 /// <param name="id">Person's Id</param>
 /// <returns>Person's data</returns>
 public HttpResponseMessage Get(int id) => CreateResponse(() =>
                                                          passengersContract.Get(id)
                                                          );