ToCombinedString() public method

public ToCombinedString ( ) : String
return String
 public int GetModulusSum(BankAccountDetails bankAccountDetails, ModulusWeightMapping weightMapping)
 {
     var combinedValue = bankAccountDetails.ToCombinedString();
     if (combinedValue.Length != 14)
     {
         throw new Exception(
             string.Format("Combined SortCode and Account Number should be 14 characters long not {0}: {1}",
                           combinedValue.Length, combinedValue));
     }
     var sum = 0;
     for (var i = 0; i < 14; i++)
     {
         sum += (int.Parse(combinedValue[i].ToString(CultureInfo.InvariantCulture)) * weightMapping.WeightValues[i]);
     }
     return sum;
 }
 public int GetModulusSum(BankAccountDetails bankAccountDetails, IModulusWeightMapping weightMapping)
 {
     var combinedValue = bankAccountDetails.ToCombinedString();
     if (combinedValue.Length != 14)
     {
         throw new Exception(
             String.Format("Combined SortCode and Account Number should be 14 characters long not {0}: {1}",
                           combinedValue.Length, combinedValue));
     }
     var sum = 0;
     for (var i = 0; i < 14; i++)
     {
         var multiplicationResult = (Int16.Parse(combinedValue[i].ToString(CultureInfo.InvariantCulture)) * weightMapping.WeightValues[i]);
         sum += GetIntArray(multiplicationResult).Sum();
     }
     if (weightMapping.Exception == 1)
     {
         sum += 27;
     }
     return sum;
 }