/// <summary> /// Validate the Content for this Related Document /// </summary> /// <param name="path">The path to this object as a string</param> /// <param name="messages">the validation messages, these may be added to within this method</param> void IDocumentDetails.Validate(string path, List <ValidationMessage> messages) { var vb = new ValidationBuilder(path, messages); if (vb.ArgumentRequiredCheck("ExternalData", ExternalData)) { ExternalData.Validate(path + "ExternalData", messages); } if (vb.ArgumentRequiredCheck("DocumentProvenance", DocumentProvenance)) { DocumentProvenance.Validate(path + "DocumentProvenance", messages); } }
/// <summary> /// Validate the Content for this Requested Service /// </summary> /// <param name="path">The path to this object as a string</param> /// <param name="messages">the validation messages, these may be added to within this method</param> public void Validate(string path, List <ValidationMessage> messages) { var vb = new ValidationBuilder(path, messages); if (vb.ArgumentRequiredCheck("LinkNature", LinkNature)) { LinkNature.Validate(path + "LinkNature", messages); } if (vb.ArgumentRequiredCheck("ExternalData", ExternalData)) { ExternalData.Validate(path + "ExternalData", messages); } if (vb.ArgumentRequiredCheck("ReportIdentifier", ReportIdentifier)) { ReportIdentifier.Validate(path + "ReportIdentifier", messages); } vb.ArgumentRequiredCheck("ReportStatus", ReportStatus); }