/// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (EncryptionSettingsCollection != null)
     {
         EncryptionSettingsCollection.Validate();
     }
 }
Exemple #2
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (EncryptionSettingsCollection != null)
     {
         EncryptionSettingsCollection.Validate();
     }
     if (PurchasePlan != null)
     {
         PurchasePlan.Validate();
     }
 }
Exemple #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 (EncryptionSettingsCollection != null)
     {
         EncryptionSettingsCollection.Validate();
     }
 }