public void CreateTodo( TodoText text, TodoCategory category, TodoStatus status) { Apply(new TaskCreated(EventSourceId, text, category, status)); }
public void MarkAsNotDone(TodoText text) { var createdEvent = new ItemNotDone( EventSourceId, text ); Apply(createdEvent); }
public void Add(TodoText text) { var createdEvent = new ItemCreated( EventSourceId, text ); Apply(createdEvent); }
public void Remove(TodoText text) { var createdEvent = new ItemRemoved( EventSourceId, text ); Apply(createdEvent); }