-
Notifications
You must be signed in to change notification settings - Fork 183
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
Stop passing IFakeObjectCallRule to OnAfterCallIntercepted in 5.0.0 #1494
Comments
@thomaslevesque, I think passing the type is a good idea. |
Thinking about this again, I wonder if it's the right thing to do. The type isn't always enough to identify a rule. For instance, the user could create a custom rule, and add several different instances of that rule. Maybe we could pass some kind of "rule descriptor" rather than just the type? Or this:
Of course, it's more work for little benefit, since nobody seems to use custom rules... |
It's true. Of course, if it's all their code, they should be able to figure out which one it was. On the other hand, if it's one of our rules, what's the benefit of them finding out which one it was? Really, I'm not sure why anyone wants to know which rule matched.
Sure, that would be fine.
… and probably even fewer the interceptors. But if you'd like to (or have me) make a new interface for this purpose, I do not mind. |
Bah, forget it, it's not worth the trouble. |
So you want to stick with type? We could remove the rule-ish parameter altogether. |
I was just wondering about that. The type isn't enough information, but we don't want to go out of our way to provide more. So yes, maybe we should just remove the parameter. |
I'll send a PR with both options. |
This change has been released in FakeItEasy 5.0.0. |
In #1491 (comment), @blairconrad said:
@thomaslevesque replied:
The text was updated successfully, but these errors were encountered: