コード例 #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
ファイル: ExtractChapter.cs プロジェクト: nickvane/OpenEHR
        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");
        }