Skip to content

Commit

Permalink
Ceate domain model
Browse files Browse the repository at this point in the history
  • Loading branch information
Julia-Lindgren committed Aug 15, 2024
1 parent c3e8e3d commit 434614d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions domain-model.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
| Classes | Methods | Scenario | Output |
|----------|--------------------------------------|------------------------------------------------|----------------------------|
| TodoList | List<Task> Tasks {get; set;} | Store and get tasks | List<Task> tasks |
| | AddTask(String, taskName) | Add a new task to Task List | bool |
| | GetCompleteTasks(List<Task> Tasks) | Filter the tasks to show only complete | List<Task> completeTasks |
| | GetIncompleteTasks(List<Task> Tasks) | Filter tasks to find only incomplete | List<Task> incompleteTasks |
| | SearchTask(String name) | Search for a specific task | bool |
| | RemoveTask(String name) | Remove task if exists | bool |
| | OrderTasks(bool ascending) | Order alphabetically true = asc / false = desc | List<Task> Tasks |
| ListTask | String Name {get; set;} | store and get name of task | String name |
| | bool Complete {get; set;} = false; | check completion status | bool |

0 comments on commit 434614d

Please sign in to comment.