Пример #1
0
        public void IbanGetLegnthShouldReturnValidLength()
        {
            string testIban   = "CZ6508000000192000145399";
            Iban   testObject = new IbanBuilder().CountryCode(CountryCode.GetCountryCode("CZ")).BankCode("0800").AccountNumberPrefix("000019").AccountNumber("2000145399").Build();

            Assert.AreEqual(testIban.Length, IbanUtils.GetIbanLength(testObject.GetCountryCode()));
        }
Пример #2
0
        public void IbanShouldReturnValidCountryCode()
        {
            Iban iban1 = new IbanBuilder().CountryCode( CountryCode.GetCountryCode( "CZ" ) ).BankCode( "0800" ).AccountNumberPrefix( "000019" ).AccountNumber( "2045654526" ).Build();

            Assert.AreEqual( CountryCode.GetCountryCode( "CZ" ), iban1.GetCountryCode() );
        }
Пример #3
0
        public void IbanShouldReturnValidCountryCode()
        {
            Iban iban1 = new IbanBuilder().CountryCode(CountryCode.GetCountryCode("CZ")).BankCode("0800").AccountNumberPrefix("000019").AccountNumber("2045654526").Build();

            Assert.AreEqual((object)CountryCode.GetCountryCode("CZ"), iban1.GetCountryCode());
        }