Пример #1
0
        public ExtractChapter(string archetypeNodeId, DataTypes.Text.DvText name,
                              ExtractEntityIdentifier entityIdentifer, ExtractEntityContent content)
            : base(archetypeNodeId, name)
        {
            // TODO: Set attribute values
            this.entityIdentifier = entityIdentifer;
            this.content          = content;

            // TODO: implement SetAttributeDictionary and CheckInvariant overrides
            SetAttributeDictionary();
            CheckInvariants();

            DesignByContract.Check.Ensure(EntityIdentifier != null, "EntityIdentifier must not be null");
            DesignByContract.Check.Ensure(Content != null, "Content must not be null");
        }
Пример #2
0
        public ExtractChapter(string archetypeNodeId, DataTypes.Text.DvText name, 
            ExtractEntityIdentifier entityIdentifer, ExtractEntityContent content)
            : base(archetypeNodeId, name)
        {
            // TODO: Set attribute values
            this.entityIdentifier = entityIdentifer;
            this.content = content;

            // TODO: implement SetAttributeDictionary and CheckInvariant overrides
            SetAttributeDictionary();
            CheckInvariants();

            DesignByContract.Check.Ensure(EntityIdentifier != null, "EntityIdentifier must not be null");
            DesignByContract.Check.Ensure(Content != null, "Content must not be null");
        }