Пример #1
0
        public int GetTotalPopulationByCities(IEnumerable <string> cities)
        {
            int totalPopulation = 0;

            foreach (var city in cities)
            {
                totalPopulation += itemContainer.GetPopulationByCapitalName(city);
            }

            return(totalPopulation);
        }