示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Skill" /> class.
        /// </summary>
        /// <param name="skillGroup">skillGroup.</param>
        /// <param name="cluster">cluster.</param>
        /// <param name="skill">skill.</param>
        /// <param name="validity">validity (required).</param>
        /// <param name="dateGained">dateGained.</param>
        /// <param name="obtainedFromReason">obtainedFromReason.</param>
        /// <param name="certificateNumber">certificateNumber.</param>
        /// <param name="notes">notes.</param>
        public Skill(string skillGroup = default(string), string cluster = default(string), string skill = default(string), DateSpan validity = default(DateSpan), string dateGained = default(string), string obtainedFromReason = default(string), string certificateNumber = default(string), string notes = default(string))
        {
            // to ensure "validity" is required (not null)
            if (validity == null)
            {
                throw new InvalidDataException("validity is a required property for Skill and cannot be null");
            }
            else
            {
                this.Validity = validity;
            }

            this.SkillGroup         = skillGroup;
            this.Cluster            = cluster;
            this._Skill             = skill;
            this.DateGained         = dateGained;
            this.ObtainedFromReason = obtainedFromReason;
            this.CertificateNumber  = certificateNumber;
            this.Notes = notes;
        }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VacancyWhen" /> class.
 /// </summary>
 /// <param name="planned">planned.</param>
 public VacancyWhen(DateSpan planned = default(DateSpan))
 {
     this.Planned = planned;
 }