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 }; }
public void InitSwitchBlockExecuteTest() { this.m_mathOperationEnamParam = new MathOperationEnamParam(); this.m_mathOperationSwitchValidators = new ValidatorList<Numbers> { { typeof(AddBlock), () => this.m_mathOperationEnamParam }, { typeof(SubtractBlock), () => this.m_mathOperationEnamParam }, { typeof(MultiplyBlock), () => this.m_mathOperationEnamParam } }; this.m_numbers = new Numbers { Number1 = 9, Number2 = 7 }; }