Beispiel #1
0
        public override void Validate(object value)
        {
            var hstsConfig = (HstsConfigurationElement)value;

            var validator = new HstsConfigurationValidator();

            try
            {
                validator.Validate(hstsConfig);
            }
            catch (Exception e)
            {
                throw new ConfigurationErrorsException("HSTS configuration error. Details: " + e.Message, e);
            }
        }
 public void Setup()
 {
     _validator = new HstsConfigurationValidator();
 }
Beispiel #3
0
 public HstsConfigurationValidatorTests()
 {
     _validator = new HstsConfigurationValidator();
 }