Exemple #1
0
        public static bool TryCreate(string ibanNumber, out IBAN result, out string failureReason)
        {
            var specification = new IBANSpecification();
            if (specification.IsSatisfiedBy(ibanNumber))
            {
                result = new IBAN(ibanNumber);
                failureReason = string.Empty;
                return true;
            }

            result = null;
            failureReason = specification.GetReasonsForDissatisfactionSeparatedWithNewLine();
            return false;
        }
Exemple #2
0
 protected bool Equals(IBAN other)
 {
     return ibanNumber.Equals(other.ibanNumber);
 }