public void Apply(IssueUpdated @event) { Issues[@event.IssueId] = Issues[@event.IssueId] with { Description = @event.Description }; } }
public void Apply(IssueUpdated @event) { if (!Issues.ContainsKey(@event.IssueId)) { return; } Issues[@event.IssueId] = Issues[@event.IssueId] with { Description = @event.Description }; }
public void Apply(IssueUpdated @event) { var issue = List.Single(t => t.IssueId == @event.IssueId); issue.Description = @event.Description; }