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(); }
public HstsConfigurationValidatorTests() { _validator = new HstsConfigurationValidator(); }