public void Should_Validate_An_Account_Number_With_Method_01()
        {
            IAccountNumberValidationByMethodCode sut = SuT;

            Assert.IsTrue(sut.IsValid("4234322787", "01"));
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="GermanAccountNumberValidation"/> class.
 /// </summary>
 /// <param name="bankCodeMappingMethod">The bank code mapping method.</param>
 /// <param name="accountNumberValidationByMethodCode">The check method code map to method.</param>
 public GermanAccountNumberValidation(IBankCodeMapToValidationMethodCode bankCodeMappingMethod, IAccountNumberValidationByMethodCode accountNumberValidationByMethodCode)
 {
     BankCodeMappingMethod = bankCodeMappingMethod;
     this.accountNumberValidationByMethodCode = accountNumberValidationByMethodCode;
 }
        public void Should_Calculate_A_Digit_With_Method01()
        {
            IAccountNumberValidationByMethodCode sut = SuT;

            Assert.AreEqual("7", sut.CalculateCheckDigit("423432278", "01"));
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="GermanAccountNumberValidation"/> class.
 /// </summary>
 /// <param name="accountNumberValidationByMethodCode">The check method code map to method.</param>
 public GermanAccountNumberValidation(IAccountNumberValidationByMethodCode accountNumberValidationByMethodCode)
     : this(new BankCodeMapToValidationMethodCodeByBankCodeFile(), accountNumberValidationByMethodCode)
 {
 }