예제 #1
0
        public static Todo CreateTodo(TodoId id, TodoTitle title)
        {
            Todo todo = new Todo(id, title, new TodoCompleted(false));

            return(todo);
        }
예제 #2
0
 public void Remove(TodoId id)
 {
     // Todo: Send TodoRemoved domain event.
 }
예제 #3
0
 private Todo(TodoId id, TodoTitle title, TodoCompleted completed)
 {
     Id        = id;
     Title     = title;
     Completed = completed;
 }