Example #1
0
        /// <exception cref="ArgumentNullException">
        /// <paramref name="startNode"/>is null.-or-
        /// <paramref name="endNode"/> is null.-or-
        /// <paramref name="commentRelation"/> is null.
        /// </exception>
        internal CommentConnection(TerminalNode startNode, TerminalNode endNode,
                                   CommentRelation commentRelation) : base(startNode, endNode)
        {
            if (commentRelation == null)
            {
                throw new ArgumentNullException("commentRelation");
            }

            this.commentRelation = commentRelation;
        }
Example #2
0
 public static DalCommentRelation ToDal(CommentRelation relation)
 {
     if (relation == null)
     {
         throw new ArgumentNullException(nameof(relation));
     }
     return(new DalCommentRelation()
     {
         Id = relation.Id,
         RelationName = relation.RelationName
     });
 }
Example #3
0
 /// <exception cref="ArgumentNullException">
 /// <paramref name="relation"/> is null.-or-
 /// <paramref name="startShape"/> is null.-or-
 /// <paramref name="endShape"/> is null.
 /// </exception>
 public CommentConnection(CommentRelation relation, DiagramShape startShape,
                          DiagramShape endShape) : base(relation, startShape, endShape)
 {
     this.relation = relation;
 }