You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't you think the use case should also check if the provided note identifier exists and throw an expection if it doesn't? I say this since we're expecting notifications to behave like this #20:
This use case will receive a noteIdentifier and a date, and then:
Will search if the note exists on the NoteRepository, if it doesn't will throw an exception (NoSuchNoteException? See the note >package for the current name).
Yes, I think that adding the note repository as a dependency of the notification use cases makes sense, since a notification doesn't exist without a note (which is the core of our app, so makes sense that is the parent node on the dependency graph).
This use case should receive a note identifier and a date object, and must:
The text was updated successfully, but these errors were encountered: