public void When(TaskNameChanged e) { writer.Update(e.Id, v => { v.Name = e.NewName; return v; }); }
private void When(TaskNameChanged e) { Name = e.NewName; }