Conversation
Deleted UnExcepted Usings
Tests
- Can't create 2 TodoItems with same name (throw exception) - Can't edit 2 TodoItems with same name (throw exception)
- TodoService should have ability to add/edit/delete todo items. - Connect TodoService with InMemoryProvider.(I Connectet With CategoryService in this way ... For My Own learn ... :) )
then creating TodoItems with priority 2, deadline must exist, and must be no less than 2 days in the future.
then creating TodoItems with priority 1, description must exist, and must have at least 140 chars.
then deleting TodoItems it’s status can’t be ‘Planned’.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?