Example #1
0
 internal ViolationConfiguration(ConventionConfiguration conventionConfiguration)
 {
     if (conventionConfiguration == null)
     {
         throw new ArgumentNullException("conventionConfiguration");
     }
     _conventionConfiguration = conventionConfiguration;
 }
Example #2
0
 internal ViolationConfiguration(ConventionConfiguration conventionConfiguration)
 {
     _conventionConfiguration = conventionConfiguration ?? throw new ArgumentNullException(nameof(conventionConfiguration));
 }
 public void ApplyConfiguration(Action<ViolationConfiguration> violationConfiguration)
 {
     if (violationConfiguration == null) throw new ArgumentNullException("violationConfiguration");
     var conventionsConfiguration = new ConventionConfiguration(_conventions);
     var configuration = new ViolationConfiguration(conventionsConfiguration);
     violationConfiguration.Invoke(configuration);
 }
 public void ApplyConfiguration(Action<ConventionConfiguration> conventionConfiguration)
 {
     if (conventionConfiguration == null) throw new ArgumentNullException("conventionConfiguration");
     var configuration = new ConventionConfiguration(_conventions);
     conventionConfiguration.Invoke(configuration);
 }