Skip to content
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

How do you mock an IAsyncEnumerable<T> ? #962

Closed
TechWatching opened this issue Nov 27, 2019 · 2 comments
Closed

How do you mock an IAsyncEnumerable<T> ? #962

TechWatching opened this issue Nov 27, 2019 · 2 comments

Comments

@TechWatching
Copy link

I want to setup a method that returns an IAsyncEnumerable but I don't understand how to do it.

@poke
Copy link

poke commented Nov 27, 2019

(This was cross-posted to Stack Overflow)

@TechWatching
Copy link
Author

I will close the issue as the Stack Overflow post answered the question, but I guess Moq should allow to use RetunsAsync instead of Return to setup methods retunring and IASyncEnumerable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants