private void OnCommentAdded(MeetupDocument document, MeetupCommentAdded @event)
 {
     document.Comments.Add(new MeetupComment
     {
         CommentatorId = @event.CommentatorId,
         Comment       = @event.Comment,
         CreatedDate   = @event.CreatedDate
     });
 }
예제 #2
0
 private void OnCommentAdded(MeetupCommentAdded @event)
 {
     _comments.Add(new MeetupComment
     {
         CommentatorId = new CommentatorId(@event.CommentatorId),
         Comment       = new Comment(@event.Comment),
         CreatedDate   = @event.CreatedDate
     });
 }