public FirstModulusCalculatorStep(FirstStepRouter firstStepRouter, SecondModulusCalculatorStep smc,
                                   StandardModulusExceptionFourteenCalculator efc)
 {
     _firstStepRouter = firstStepRouter;
     _secondModulusCalculatorStep = smc;
     _exceptionFourteenCalculator = efc;
 }
Esempio n. 2
0
 public FirstModulusCalculatorStep(FirstStepRouter firstStepRouter, SecondModulusCalculatorStep smc,
                                   StandardModulusExceptionFourteenCalculator efc)
 {
     _firstStepRouter             = firstStepRouter;
     _secondModulusCalculatorStep = smc;
     _exceptionFourteenCalculator = efc;
 }
 public void Setup()
 {
     _mockFirstStandardTenCalculator = new Mock<FirstStandardModulusTenCalculator>();
     _mockFirstStandardElevenExceptionFiveCalculator =
         new Mock<FirstStandardModulusElevenCalculatorExceptionFive>();
     _mockFirstStandardElevenCalculator =
         new Mock<FirstStandardModulusElevenCalculator>(_mockFirstStandardElevenExceptionFiveCalculator.Object);
     _mockFirstDoubleAlternateExceptionFiveCalculator =
         new Mock<FirstDoubleAlternateCalculatorExceptionFive>();
     _mockFirstDoubleAlternator = new Mock<FirstDoubleAlternateCalculator>(_mockFirstDoubleAlternateExceptionFiveCalculator
                                                                          .Object);
     _targetRouter = new FirstStepRouter(_mockFirstStandardTenCalculator.Object,
                                         _mockFirstStandardElevenCalculator.Object,
                                         _mockFirstDoubleAlternator.Object);
     _targetRouterForExceptionFive = new FirstStepRouter(_mockFirstStandardTenCalculator.Object,
                                                         new FirstStandardModulusElevenCalculator(
                                                             _mockFirstStandardElevenExceptionFiveCalculator
                                                                 .Object),
                                                         new FirstDoubleAlternateCalculator(
                                                             _mockFirstDoubleAlternateExceptionFiveCalculator
                                                                 .Object));
 }
Esempio n. 4
0
 public FirstModulusCalculatorStep(FirstStepRouter firstStepRouter, IProcessAStep gates)
 {
     _firstStepRouter = firstStepRouter;
     _gates           = gates;
 }
Esempio n. 5
0
 public FirstModulusCalculatorStep()
 {
     _firstStepRouter = new FirstStepRouter();
     _gates           = new Gates.GatePipeline();
 }
 public FirstModulusCalculatorStep(SortCodeSubstitution sortCodeSubstitution)
 {
     _firstStepRouter = new FirstStepRouter(sortCodeSubstitution);
     _gates           = new Gates.GatePipeline(sortCodeSubstitution);
 }
 public FirstModulusCalculatorStep()
 {
     _firstStepRouter = new FirstStepRouter();
     _secondModulusCalculatorStep = new SecondModulusCalculatorStep();
     _exceptionFourteenCalculator = new StandardModulusExceptionFourteenCalculator();
 }
Esempio n. 8
0
 public FirstModulusCalculatorStep()
 {
     _firstStepRouter             = new FirstStepRouter();
     _secondModulusCalculatorStep = new SecondModulusCalculatorStep();
     _exceptionFourteenCalculator = new StandardModulusExceptionFourteenCalculator();
 }