public void Apply(IssueUpdated @event)
     {
         Issues[@event.IssueId] = Issues[@event.IssueId]
                                  with {
             Description = @event.Description
         };
     }
 }
Example #2
0
            public void Apply(IssueUpdated @event)
            {
                if (!Issues.ContainsKey(@event.IssueId))
                {
                    return;
                }

                Issues[@event.IssueId] = Issues[@event.IssueId]
                                         with {
                    Description = @event.Description
                };
            }
Example #3
0
            public void Apply(IssueUpdated @event)
            {
                var issue = List.Single(t => t.IssueId == @event.IssueId);

                issue.Description = @event.Description;
            }