public static Todo CreateTodo(TodoId id, TodoTitle title) { Todo todo = new Todo(id, title, new TodoCompleted(false)); return(todo); }
public void Remove(TodoId id) { // Todo: Send TodoRemoved domain event. }
private Todo(TodoId id, TodoTitle title, TodoCompleted completed) { Id = id; Title = title; Completed = completed; }