/// <summary> /// Validate the object. /// </summary> /// <exception cref="ValidationException"> /// Thrown if validation fails /// </exception> public virtual void Validate() { if (ProviderLocation == null) { throw new ValidationException(ValidationRules.CannotBeNull, "ProviderLocation"); } if (ProviderLocation != null) { ProviderLocation.Validate(); } }
/// <summary> /// Validate the object. /// </summary> /// <exception cref="ValidationException"> /// Thrown if validation fails /// </exception> public virtual void Validate() { if (AggregationLevel == null) { throw new ValidationException(ValidationRules.CannotBeNull, "AggregationLevel"); } if (ProviderLocation == null) { throw new ValidationException(ValidationRules.CannotBeNull, "ProviderLocation"); } if (ReachabilityReport == null) { throw new ValidationException(ValidationRules.CannotBeNull, "ReachabilityReport"); } if (ProviderLocation != null) { ProviderLocation.Validate(); } }