-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AssertRelated expects a count of 1 #116
Comments
I've noticed that this can easily be overcome by decorating with new Counted(5, new AssertRelated(…)); The question is, is it good design to let |
I suppose it can be okay in multiple ways. How about Design-wise, it's of course better if count is applied separately to keep it SRP, but since |
There are probably only very few cases in which we would need to assert the existence of multiple related rows. At present I only need that for recurrence expansion. So in this case I'd be ok with adding documentation to make clear that |
AssertRelated
always expects a row count of 1, sometimes more than just one related row might exist (i.e. like when creating a recurring task or event).The text was updated successfully, but these errors were encountered: