public AjaxContinuation Validate(ValidateField field) { var rule = _graph.RuleFor(field.Hash); var notification = _rules.Run(rule, field.Value); return(_continuation.Resolve(notification)); }
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(); }
private void _view_RuleRunnerStart(object sender, EventArgs e) { _runner.Run(_configFactory, _project); }