public void ConfigurationFactoryShouldSetOverrideToProject() { IRuleConfigurationOverride overrideConfig = Mocker.DynamicMock <IRuleConfigurationOverride>(); Expect.Call(() => _project.SetProjectRuleConfigurationOverrideTo(overrideConfig)).Repeat.Once(); Expect.Call(() => _manager.Write(_project)).Repeat.Once(); Mocker.ReplayAll(); _configFactory.SetRuleConfiguration(overrideConfig); Mocker.VerifyAll(); }
/// <summary> /// Sets the configuration override /// </summary> /// <param name="overrideConfig">The configuration to set</param> public void SetRuleConfiguration(IRuleConfigurationOverride overrideConfig) { _project.SetProjectRuleConfigurationOverrideTo(overrideConfig); _manager.Write(_project); }
private void SaveProject() { _projectManager.Write(_project); _view.ProjectHasChanges(false); HasChanges = false; }