Exemple #1
0
        public IEnumerable <string> GetRegionalBlocsNames()
        {
            if (RegionalBlocs == null)
            {
                return(new List <string>());
            }

            return(RegionalBlocs.Select(c => c.Name));
        }
Exemple #2
0
        public bool IsInCommonMarket(Country country)
        {
            CountryDescription countryDescription = GetCountryDescriptionViaRestCall(country);

            if (countryDescription == null)
            {
                return(false);
            }
            IList <RegionalBlocs> regionalBlocs = countryDescription.regionalBlocs;

            if (regionalBlocs.Count == 0)
            {
                return(false);
            }
            RegionalBlocs bloc = regionalBlocs[0];

            return(bloc.acronym != null && bloc.acronym.Equals("EU"));
        }