コード例 #1
0
        public AjaxContinuation Validate(ValidateField field)
        {
            var rule         = _graph.RuleFor(field.Hash);
            var notification = _rules.Run(rule, field.Value);

            return(_continuation.Resolve(notification));
        }
コード例 #2
0
        public void RuleRunnerControllerShouldStartRunnerOnViewRunnerStart()
        {
            Expect.Call(() => _runner.Run(_configFactory, _projectModel)).Repeat.Once();

            Mocker.ReplayAll();

            RuleRunnerController controller = new RuleRunnerController(_view, _runner, _projectModel, _configFactory);

            _view.Raise(x => x.RuleRunnerStart += null, this, EventArgs.Empty);

            Mocker.VerifyAll();
        }
コード例 #3
0
 private void _view_RuleRunnerStart(object sender, EventArgs e)
 {
     _runner.Run(_configFactory, _project);
 }