-
-
Notifications
You must be signed in to change notification settings - Fork 798
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
Setup sequence doesn't support ReturnsAsync with Func<> #795
Comments
Would you like to provide the implementation for it? |
Yea, I think I can make it :) |
could you please detail the requirements ? |
The existing non-async method I'd expect the planned |
I can't make my branch public. git push --set-upstream origin "#795" |
@VladFasie - First, please coordinate your efforts with @kswider, as he stated above that he might be working on this as well. It would be a shame if both of you work on this separately, as I will only be able to merge the changes from one of you. If @kswider is fine with you going ahead here, then please send a pull request (PR) via GitHub. That is:
Since you've already started, you can skip 2, 3, and 4. Instead, add a remote in your local repo that points to your fork repo on GitHub. Please make sure that you've read our contributing guide. Thanks! P.S. not sure if GitHub handles a branch name |
If @VladFasie has already finished fixing that issue I'm ok with that. I planned to do it today :) |
I ran into this just yesterday and would love to see it added. In addition, there doesn't seem to be any way of accessing the arguments within the version of |
Moq's API today is mostly driven by the community's needs, so it is not so much an oversight, but more that noone asked for nor implemented this. Making these additions would certainly be possible. (I personally think the whole |
I hope I will manage to come with a push in weekend |
@kswider: @VladFasie closed his PR a moment ago. If you'd still like to proceed with this issue and submit your own, please feel free to go ahead. |
Is there a workaround? |
In SetupSequence there is an overload for Returns can that take Func<> as an argument, but there isn't such overload for ReturnsAsync.
I think that adding this overload to ReturnsAsync would be a nice enhancement.
The text was updated successfully, but these errors were encountered: