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

            return(todo);
        }
Beispiel #2
0
 public void UpdateTitle(TodoTitle title)
 {
     Title = title;
 }
Beispiel #3
0
 private Todo(TodoId id, TodoTitle title, TodoCompleted completed)
 {
     Id        = id;
     Title     = title;
     Completed = completed;
 }