示例#1
0
        public ReportInstanceTaskComment AddComment(string comment)
        {
            var newTaskComment = new ReportInstanceTaskComment(comment);

            _comments.Add(newTaskComment);
            return(newTaskComment);
        }
示例#2
0
        private void AddTaskCommentAddedDomainEvent(ReportInstanceTaskComment newComment)
        {
            var domainEvent = new TaskCommentAddedDomainEvent(newComment);

            this.AddDomainEvent(domainEvent);
        }