public void Consume(NoteRenamed e)
 {
     Rename(e.NoteId, e.NewName);
 }
 public void When(NoteRenamed e)
 {
     var item = (NoteItem)_items[e.NoteId];
     item.Rename(e.NewName);
 }
 public void Consume(NoteRenamed e)
 {
     _writer.UpdateOrThrow(e.StoryId, sv => sv.UpdateNote(e.NoteId, n => n.Title = e.NewName));
 }