TDD homework (With Extra Own Tests) #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
1 Service
Additional task:
2 Test:
3 more fields:
Add new enum property to TodoItem : Status. [Backlog, Planned, Wip, Done]
Add new property to TodoItem : Deadline. (DateTime)
Add migration and data to DB.
Fix views to show/edit new fields.
4 tests:
then creating/editing TodoItems, we can have only 1 Wip status item with priority 1.
then creating/editing TodoItems, we can have only 3 Wip status items with priority 2.
then creating/editing TodoItems with priority 1, deadline must exist, and must be no less than week in the future.
then creating/editing TodoItems with priority 2, deadline must exist, and must be no less than 2 days in the future.
then creating/editing TodoItems with priority 1, description must exist, and must have at least 140 chars.
then deleting TodoItems it’s status can’t be ‘Planned’.
5 extra:
What extra features you can add and test?