Example #1
0
        protected virtual bool CalculateNationalCheckDigits_Valid_Iban_Test_Success(string iban)
        {
            var countryCode = iban.Substring(0, 2);
            var checkDigits = iban.Substring(2, 2);
            var bban        = iban.Substring(4);
            var ibanWithCheckCodeRemoved = string.Concat(countryCode, "00", bban);
            var calculatedCheckDigits    = Country.CalculateNationalCheckDigits(ibanWithCheckCodeRemoved);

            Assert.AreEqual(checkDigits, calculatedCheckDigits);
            return(true);
        }