public void RuleConfigurationControllerShouldDisplayRuleConfigurationParameterOnSelectedRuleParameterChanged() { IRuleConfigurationParameter config = Mocker.DynamicMock <IRuleConfigurationParameter>(); Expect.Call(() => _view.DisplayRuleConfigurationParameter(config)).Repeat.Once(); Mocker.ReplayAll(); RuleConfigurationController controller = new RuleConfigurationController(_view, _provider, _configFactory); _view.Raise(x => x.SelectedRuleParameterChanged += null, this, new RuleConfigurationParameterEventArgs(config)); Mocker.VerifyAll(); }