C# Class ModulusChecking.ModulusChecks.DoubleAlternateModulusCheck

ファイルを表示 Open project: pauldambra/ModulusChecker Class Usage Examples

Public Methods

Method Description
GetModulusSum ( BankAccountDetails bankAccountDetails, ModulusWeightMapping weightMapping ) : int

Private Methods

Method Description
GetIntArray ( int num ) : IEnumerable

The DoubleAlternate rule adds together the individual digits of the numbers that result from multiplication of sortcode, account number and modulus weighting value. This method takes an integer and returns an array of its individual digits

Method Details

GetModulusSum() public method

public GetModulusSum ( BankAccountDetails bankAccountDetails, ModulusWeightMapping weightMapping ) : int
bankAccountDetails ModulusChecking.Models.BankAccountDetails
weightMapping ModulusChecking.Models.ModulusWeightMapping
return int