public void SearchWhenGetFromCouchbase()
        {
            Init();

            string code = "AMS";

            AirportDto airportDto = new AirportDto
            {
                AirportCode = "AMS",
                CityOrAirportName = "Amsterdam",
                Country = "Netherlands",
                CountryCode = "461",
                LatitudeDegree = "52",
                LongitudeDegree = "4"
            };

            m_AirportControllerHandlerMock.GetAirportInformationFromCouchbaseByAirportCode(code).Returns(airportDto);

            AirportViewModel airportViewModel = new AirportViewModel
            {
                AirportCode = airportDto.AirportCode,
                CityOrAirportName = airportDto.CityOrAirportName,
                Country = airportDto.Country,
                CountryCode = airportDto.CountryCode,
                LatitudeDegree = airportDto.LatitudeDegree,
                LongitudeDegree = airportDto.LongitudeDegree
            };

            AirportController airportController = new AirportController(m_AirportControllerHandlerMock);

            var result = airportController.Search(code) as ActionResult;

            Assert.IsNotNull(airportViewModel);
            Assert.IsNotNull(result);
        }
        public void Search()
        {
            Init();

            AirportController airportController = new AirportController(m_AirportControllerHandlerMock);

            var result = airportController.Search() as ActionResult;

            Assert.IsNotNull(result);
        }
        public void SearchWhenParamIsEmptyOrNull()
        {
            Init();

            string code = string.Empty;

            AirportController airportController = new AirportController(m_AirportControllerHandlerMock);

            var result = airportController.Search(code) as ActionResult;

            Assert.IsNull(result);
        }