Пример #1
0
        public override void SetUp()
        {
            base.SetUp();

            _view          = Mocker.DynamicMock <IRuleRunnerView>();
            _runner        = Mocker.DynamicMock <IRuleRunner>();
            _projectModel  = Mocker.DynamicMock <ICalidusProjectModel>();
            _configFactory = Mocker.DynamicMock <ICalidusRuleConfigurationFactory>();
        }
Пример #2
0
        /// <summary>
        /// Create a new instance of this class
        /// </summary>
        /// <param name="view">The view to use</param>
        /// <param name="runner">The runner to use</param>
        /// <param name="project">The projectmodel to use</param>
        public RuleRunnerController(IRuleRunnerView view, IRuleRunner runner, ICalidusProjectModel project, ICalidusRuleConfigurationFactory configFactory)
        {
            _view = view;
            _view.RuleRunnerStart += new EventHandler <EventArgs>(_view_RuleRunnerStart);

            _runner = runner;
            _runner.FileCompleted += new EventHandler <FileCompletedEventArgs>(_runner_FileCompleted);

            _project = project;

            _configFactory = configFactory;
        }