Esempio n. 1
0
 public FirstStepRouter()
 {
     _firstStandardModulusTenCalculator    = new FirstStandardModulusTenCalculator();
     _firstStandardModulusElevenCalculator = new FirstStandardModulusElevenCalculator();
     _doubleAlternateCalculator            = new FirstDoubleAlternateCalculator();
     InitialiseRoutingDictionary();
 }
Esempio n. 2
0
 public FirstStepRouter(FirstStandardModulusTenCalculator st, FirstStandardModulusElevenCalculator se,
                        FirstDoubleAlternateCalculator da)
 {
     _firstStandardModulusTenCalculator    = st;
     _firstStandardModulusElevenCalculator = se;
     _doubleAlternateCalculator            = da;
     InitialiseRoutingDictionary();
 }
Esempio n. 3
0
        public void CanProcessVocalinkStandardEleven()
        {
            var accountDetails = new BankAccountDetails("107999", "88837491");

            accountDetails.WeightMappings = ModulusWeightTable.GetInstance.GetRuleMappings(accountDetails.SortCode);
            var result = new FirstStandardModulusElevenCalculator().Process(accountDetails);

            Assert.True(result);
        }
Esempio n. 4
0
        public void CanProcessStandardElevenCheck()
        {
            var accountDetails = new BankAccountDetails("000000", "58177632");

            accountDetails.WeightMappings = _fakedModulusWeightTable.Object.GetRuleMappings(accountDetails.SortCode);
            var result = new FirstStandardModulusElevenCalculator().Process(accountDetails);

            Assert.True(result);
        }
        public FirstStepRouter(SortCodeSubstitution sortCodeSubstitution)
        {
            _firstStandardModulusTenCalculator = new FirstStandardModulusTenCalculator();
            var firstStandardModulusElevenCalculatorExceptionFive = new FirstStandardModulusElevenCalculatorExceptionFive(sortCodeSubstitution);

            _firstStandardModulusElevenCalculator = new FirstStandardModulusElevenCalculator(firstStandardModulusElevenCalculatorExceptionFive);
            _doubleAlternateCalculator            = new FirstDoubleAlternateCalculator(new FirstDoubleAlternateCalculatorExceptionFive());
            InitialiseRoutingDictionary();
        }
Esempio n. 6
0
        public void CanProcessVocalinkStandardEleven()
        {
            var accountDetails = new BankAccountDetails("107999", "88837491");

            accountDetails.WeightMappings = new ModulusWeightTable(Resources.valacdos).GetRuleMappings(accountDetails.SortCode);
            var result = new FirstStandardModulusElevenCalculator(new FirstStandardModulusElevenCalculatorExceptionFive(new SortCodeSubstitution(Resources.scsubtab))).Process(accountDetails);

            Assert.True(result);
        }
Esempio n. 7
0
        public void CanProcessStandardElevenCheck()
        {
            var accountDetails = new BankAccountDetails("000000", "58177632");

            accountDetails.WeightMappings = _fakedModulusWeightTable.Object.GetRuleMappings(accountDetails.SortCode);
            var result = new FirstStandardModulusElevenCalculator(new FirstStandardModulusElevenCalculatorExceptionFive(new SortCodeSubstitution(Resources.scsubtab))).Process(accountDetails);

            Assert.True(result);
        }
Esempio n. 8
0
 public void Setup()
 {
     _calculator = new FirstStandardModulusElevenCalculator(new FirstStandardModulusElevenCalculatorExceptionFive(new SortCodeSubstitution(Resources.scsubtab)));
 }
 public void Setup()
 {
     _calculator = new FirstStandardModulusElevenCalculator();
 }