public override void Validate(object value) { var xRobotsConfig = (XRobotsTagConfigurationElement)value; var validator = new XRobotsTagConfigurationValidator(); try { validator.Validate(xRobotsConfig); } catch(Exception e) { throw new ConfigurationErrorsException("xRobotsTag configuration error. Details: " + e.Message, e); } }
public HeaderConfigurationOverrideHelper() { _xRobotsValidator = new XRobotsTagConfigurationValidator(); }
public void Setup() { _validator = new XRobotsTagConfigurationValidator(); }