private void Validate() { if (!HasValue()) { return; } if (!SettingsValidator.BugzillaVersionIsSupported(_bugzillaVersion)) { throw new ApplicationException(string.Format(SettingsValidator.BUGZILLA_VERSION_IS_NOT_SUPPORTED_BY_PLUGIN, _bugzillaVersion)); } if (!SettingsValidator.ScriptSupportsProvidedBugzillaVersion(_bugzillaVersion, _supportedBugzillaVersion)) { throw new ApplicationException(string.Format(SettingsValidator.BUGZILLA_VERSION_IS_NOT_SUPPORTED_BY_TP2_CGI, _bugzillaVersion)); } if (!SettingsValidator.ScriptVersionIsValid(_scriptVersion)) { throw new ApplicationException(string.Format(SettingsValidator.TP2_CGI_IS_NOT_SUPPORTED_BY_THIS_PLUGIN, _scriptVersion)); } }