Exemple #1
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (SourceReport == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "SourceReport");
     }
     if (SourceReport != null)
     {
         SourceReport.Validate();
     }
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the UpdateReportContentRequest class.
 /// </summary>
 public UpdateReportContentRequest(SourceReport sourceReport)
 {
     SourceReport = sourceReport;
     CustomInit();
 }