public void InitSwitchBlockExecuteTest()
        {
            this.m_mathOperationEnamParam = new MathOperationEnamParam();
              this.m_mathOperationController = new ValidationController<Numbers>();
              this.m_mathOperationController.RegisterValidator(typeof(AddBlock), () => this.m_mathOperationEnamParam);
              this.m_mathOperationController.RegisterValidator(typeof(SubtractBlock), () => this.m_mathOperationEnamParam);
              this.m_mathOperationController.RegisterValidator(typeof(MultiplyBlock), () => this.m_mathOperationEnamParam);
              this.m_mathOperationController.RegisterValidator(typeof(DivisionBlock), () => this.m_mathOperationEnamParam);

              this.m_numbers = new Numbers { Number1 = 9, Number2 = 7 };
        }
Beispiel #2
0
 public ValidationStrategy(IValidationController controller)
 {
     _controller = controller;
 }
 public DateRangeFactory(IValidationController validationController)
 {
     this._validationController = validationController;
 }