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