コード例 #1
0
ファイル: ReportInstanceTask.cs プロジェクト: MSH/PViMS-2
        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);
        }