Example #1
0
        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);
 }
Example #3
0
 /// <summary>
 /// Sets a rule configuration override
 /// </summary>
 /// <param name="overrideConfig">The override config</param>
 public void SetProjectRuleConfigurationOverrideTo(IRuleConfigurationOverride overrideConfig)
 {
     _project.SetProjectRuleConfigurationOverrideTo(overrideConfig);
 }