C# 클래스 ModulusChecking.Steps.Calculators.DoubleAlternateCalculatorExceptionFive

상속: BaseModulusCalculator
파일 보기 프로젝트 열기: zopaUK/ModulusChecker 1 사용 예제들

공개 메소드들

메소드 설명
Process ( BankAccountDetails bankAccountDetails ) : bool

/Perform the second double alternate check, and for the double alternate check with exception 5 the checkdigit is h from the original account number, except: • After dividing the result by 10; - if the remainder=0 and h=0 the account number is valid - for all other remainders, take the remainder away from 10. If the number you get is the same as h then the account number is valid.

보호된 메소드들

메소드 설명
GetWeightSumForStep ( BankAccountDetails bankAccountDetails ) : int

메소드 상세

GetWeightSumForStep() 보호된 추상적인 메소드

protected abstract GetWeightSumForStep ( BankAccountDetails bankAccountDetails ) : int
bankAccountDetails ModulusChecking.Models.BankAccountDetails
리턴 int

Process() 공개 메소드

/Perform the second double alternate check, and for the double alternate check with exception 5 the checkdigit is h from the original account number, except: • After dividing the result by 10; - if the remainder=0 and h=0 the account number is valid - for all other remainders, take the remainder away from 10. If the number you get is the same as h then the account number is valid.
public Process ( BankAccountDetails bankAccountDetails ) : bool
bankAccountDetails ModulusChecking.Models.BankAccountDetails
리턴 bool