public void Getter_Found_Country(string countryCode) { var country = Getter.GetCountry(countryCode); Assert.AreNotEqual(null, country); Assert.AreEqual(countryCode, country.Iso3166); }
protected ICountry GetCountryFromIBan(string iban) { return(Getter.GetCountry(iban.Substring(0, 2))); }
/// <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)); }
public void Getter_Not_Found_Country(string countryCode) { Assert.AreEqual(null, Getter.GetCountry(countryCode)); }