Beispiel #1
0
        public void CanProcessModulusTen()
        {
            var bankDetails = new BankAccountDetails("123456", "12345678")
            {
                WeightMappings = new List <IModulusWeightMapping>
                {
                    new ModulusWeightMapping(
                        "090150 090156 MOD10    0    0    0    0    0    9    8    7    6    5    4    3    2    1"),
                    new ModulusWeightMapping(
                        "090150 090156 MOD10    0    0    0    0    0    9    8    7    6    5    4    3    2    1")
                }
            };

            _targetRouter.GetModulusCalculation(bankDetails);
            _mockSecondStandardTenCalculator.Verify(calc => calc.Process(bankDetails));
        }
Beispiel #2
0
        public void CanProcessDoubleAlternateWithExceptionFive()
        {
            var bankDetails = new BankAccountDetails("123456", "12345678")
            {
                WeightMappings = new List <IModulusWeightMapping>
                {
                    new ModulusWeightMapping(
                        "090150 090156 DBLAL    0    0    0    0    0    9    8    7    6    5    4    3    2    1    5"),
                    new ModulusWeightMapping(
                        "090150 090156 DBLAL    0    0    0    0    0    9    8    7    6    5    4    3    2    1    5")
                }
            };

            _targetRouterForExceptionFive.GetModulusCalculation(bankDetails);
            _mockSecondDoubleAlternateExceptionFiveCalculator.Verify(calc => calc.Process(bankDetails));
        }