Ejemplo n.º 1
0
 public void CheckDEImpl()
 {
     var sut = new GermanIBAN("12345678", "1234567890");
     Assert.That(sut.CountryCode == "DE");
     Assert.That(sut.BankingCode == "12345678");
     Assert.That(sut.AccountId == "1234567890");
 }
Ejemplo n.º 2
0
 public void CheckDEImplBcodeGetsFilled()
 {
     var sut = new GermanIBAN("123", "1234567890");
     Assert.That(sut.CountryCode == "DE");
     Assert.That(sut.BankingCode == "00000123");
     Assert.That(sut.AccountId == "1234567890");
 }
Ejemplo n.º 3
0
 public void CheckSumIsCorrect()
 {
     var sut = new GermanIBAN("85050300", "4000428549");
     sut.buildBBan();
     Assert.That(sut.calcCheckSum() == "25");
 }
Ejemplo n.º 4
0
 public void CheckSumIsEmptyIfBBANwasNotCalc()
 {
     var sut = new GermanIBAN("85050300", "4000428549");
     Assert.That(String.IsNullOrEmpty(sut.calcCheckSum()));
 }
Ejemplo n.º 5
0
 public void CheckIBAN()
 {
     var sut = new GermanIBAN("85050300", "4000428549");
     Assert.That(sut.BuildIBAN() == "DE25850503004000428549");
 }