public void Can_Search_Existing_Cities()
        {
            var results = _sutDomainService.Search("o").ToList();

            results.Should().NotBeNull();
            results.Count().Should().Be(2);
        }
Example #2
0
        // GET: api/CitySearch/5
        public IEnumerable <CitySearchResultApiModel> Get(string cityName)
        {
            var citySearchResult = _citySearchDomainService.Search(cityName);
            var result           = _mapperService.Map <IEnumerable <CitySearchResultApiModel> >(citySearchResult);

            return(result);
        }