コード例 #1
0
 public void Apply(IssueCreated @event)
 {
     List.Add(new Issue {
         IssueId = @event.IssueId, Description = @event.Description
     });
 }
コード例 #2
0
 public void Apply(IssueCreated @event)
 {
     var(issueId, description) = @event;
     Issues.Add(issueId, new Issue(issueId, description));
 }