Esempio n. 1
0
        /// <summary>
        /// Constructor initializes fields
        /// </summary>
        public Material()
        {
            var 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();
        }
Esempio n. 2
0
        /// <summary>
        /// Constructor initializes fields
        /// </summary>
        public Discipline()
        {
            var 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 <Lectures>()
            {
                new Lectures(), new Lectures()
            };
        }