public static IBAN Create(string ibanNumber)
{
if (ibanNumber == null)
{
throw new ArgumentNullException("ibanNumber");
}
var specification = new IBANSpecification();
if (specification.IsSatisfiedBy(ibanNumber))
{
return new IBAN(ibanNumber);
}
throw new ArgumentException(string.Format("IBAN '{0}' doesn't satisfy specification.", ibanNumber), "ibanNumber");
}