Exemple #1
0
        public void Getter_Found_Country(string countryCode)
        {
            var country = Getter.GetCountry(countryCode);

            Assert.AreNotEqual(null, country);
            Assert.AreEqual(countryCode, country.Iso3166);
        }
Exemple #2
0
 protected ICountry GetCountryFromIBan(string iban)
 {
     return(Getter.GetCountry(iban.Substring(0, 2)));
 }
Exemple #3
0
 /// <summary>
 ///     The method returns the corrispondent implementation of the interface ICountry or null searched bt the Country Code.
 /// </summary>
 /// <param name="countryCode">
 ///     The Country Code requested.
 /// </param>
 /// <returns>
 ///     The implementation of ICountry that corrisponds with the requested country code.
 /// </returns>
 public ICountry GetCountry(string countryCode)
 {
     return(Getter.GetCountry(countryCode));
 }
Exemple #4
0
 public void Getter_Not_Found_Country(string countryCode)
 {
     Assert.AreEqual(null, Getter.GetCountry(countryCode));
 }