public UniversalPropertyIdentifier(IsoCountryCode country) { Country = country; _countryUpi = country.ToCountryUpi(); }
public UniversalPropertyIdentifier(string upi) { _countryUpi = upi.ParseUpi().ToCountryUpi() ?? new InvalidCountry($"{upi} is not recognized as a valid UPI. Valid Countries are {string.Join(", ", Enum.GetNames(typeof(IsoCountryCode)))}"); }