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)); }
public void should_load_all_cities() { var list = _sut.Parse(_data); list.Count().ShouldEqual(495); }