public bool CheckBankAccount(string sortCode, string accountNumber) { var bankAccountDetails = new AccountDetails(sortCode, accountNumber); bankAccountDetails.WeightMappings = _weightTable.GetRuleMappings(bankAccountDetails.SortCode); bool Result = (bankAccountDetails.IsValidForModulusCheck() ? new ModulusCalculator().Process(bankAccountDetails) : true); return(Result); }