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