Exemplo n.º 1
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (EncryptionSettings != null)
     {
         EncryptionSettings.Validate();
     }
 }
Exemplo n.º 2
0
 /// <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();
     }
 }
Exemplo n.º 3
0
 /// <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();
     }
 }