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

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

                issue.Description = @event.Description;
            }