Example #1
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (PublishingProfile == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "PublishingProfile");
     }
     if (PublishingProfile != null)
     {
         PublishingProfile.Validate();
     }
 }
Example #2
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public override void Validate()
 {
     base.Validate();
     if (PublishingProfile == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "PublishingProfile");
     }
     if (PublishingProfile != null)
     {
         PublishingProfile.Validate();
     }
 }