Пример #1
0
        private IEnumerable <City> GetCities(string flags)
        {
            var requestUri = new UriBuilder(_config.BaseUri)
            {
                Query = "listCitiesLevel=" + flags
            };
            var client = new WebClient();
            var data   = client.DownloadString(requestUri.Uri);

            return(_cityParser.Parse(data));
        }
Пример #2
0
        public void should_load_all_cities()
        {
            var list = _sut.Parse(_data);

            list.Count().ShouldEqual(495);
        }