コード例 #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();
        }
コード例 #2
0
ファイル: Discipline.cs プロジェクト: BukatkoA/TAT-2019.1
        /// <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()
            };
        }