public override bool Process(BankAccountDetails bankAccountDetails)
{
var firstRule = bankAccountDetails.WeightMappings.First();
var secondRule = bankAccountDetails.WeightMappings.Second();
if (firstRule.Exception == 2 && secondRule.Exception == 9)
{
bankAccountDetails.SecondResult = InitialSecondCheck(bankAccountDetails, secondRule);
//may be Lloyd's TSB euro account quoted with a sterling sort code
if (!bankAccountDetails.SecondResult)
{
bankAccountDetails.SortCode = new SortCode("309634");
//load new step after change of sort code
bankAccountDetails.SecondResult = ProcessWeightingRule(bankAccountDetails, secondRule);
}
}
else
{
bankAccountDetails.SecondResult = ProcessWeightingRule(bankAccountDetails,
secondRule);
}
return bankAccountDetails.SecondResult;
}