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())); }
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() ); }
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()); }