/// <summary>
 /// Initializes a new instance of the <see cref="AssessmentType" /> class.
 /// </summary>
 /// <param name="AssessmentGUID">AssessmentGUID (required).</param>
 /// <param name="AssessmentId">Model Primitive Datatype &#x3D; NormalizedString.</param>
 /// <param name="Title">Model Primitive Datatype &#x3D; NormalizedString.</param>
 /// <param name="UrlReference">UrlReference.</param>
 /// <param name="Description">Model Primitive Datatype &#x3D; NormalizedString.</param>
 public AssessmentType(Guid AssessmentGUID, string AssessmentId = null, string Title = null, URLType UrlReference = null, string Description = null)
 {
     // to ensure "AssessmentGUID" is required (not null)
     if (AssessmentGUID == null)
     {
         throw new InvalidDataException("AssessmentGUID is a required property for AssessmentType and cannot be null");
     }
     else
     {
         this.AssessmentGUID = AssessmentGUID;
     }
     this.AssessmentId = AssessmentId;
     this.Title        = Title;
     this.UrlReference = UrlReference;
     this.Description  = Description;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RubricType" /> class.
 /// </summary>
 /// <param name="RubricGUID">RubricGUID (required).</param>
 /// <param name="RubricId">Model Primitive Datatype &#x3D; NormalizedString.</param>
 /// <param name="Title">Model Primitive Datatype &#x3D; NormalizedString.</param>
 /// <param name="Criteria">Criteria.</param>
 /// <param name="CriteriaLevels">CriteriaLevels.</param>
 /// <param name="UrlReference">UrlReference.</param>
 /// <param name="Description">Model Primitive Datatype &#x3D; NormalizedString.</param>
 public RubricType(Guid RubricGUID, string RubricId = null, string Title = null, RubricCriteriaSetType Criteria = null, RubricCriterionLevelSetType CriteriaLevels = null, URLType UrlReference = null, string Description = null)
 {
     // to ensure "RubricGUID" is required (not null)
     if (RubricGUID == null)
     {
         throw new InvalidDataException("RubricGUID is a required property for RubricType and cannot be null");
     }
     else
     {
         this.RubricGUID = RubricGUID;
     }
     this.RubricId       = RubricId;
     this.Title          = Title;
     this.Criteria       = Criteria;
     this.CriteriaLevels = CriteriaLevels;
     this.UrlReference   = UrlReference;
     this.Description    = Description;
 }