示例#1
0
        /// <summary>
        /// Constructor initializes fields
        /// </summary>
        public Material()
        {
            DescriptionSetter description = new DescriptionSetter();

            this.Description = description.SetDescription();

            if (this.Description != null && this.Description.Length > this._descriptionMaxLength)
            {
                throw new Exception("Too large description");
            }

            this.UniqueIdentifier = this.Description.SetGuid();
        }
示例#2
0
        /// <summary>
        /// Constructor initializes fields
        /// </summary>
        public Discipline()
        {
            DescriptionSetter description = new DescriptionSetter();

            this.Description = description.SetDescription();

            if (this.Description != null && this.Description.Length > this._descriptionMaxLength)
            {
                throw new Exception("Too large description");
            }

            this.UniqueIdentifier = this.Description.SetGuid();
            this.Lectures         = new List <Lecture>()
            {
                new Lecture(), new Lecture()
            };
        }