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

improve testing with reculy IClient #671

Open
wants to merge 3 commits into
base: v3-v2021-02-25
Choose a base branch
from

Conversation

quexy
Copy link

@quexy quexy commented Nov 5, 2021

Resolves #663

This is a breaking change

Cannot write unit tests with paging, because IClient returns Pager,
a type that mocking frameworks have hard time to create stubs of.
Extracting a minimalistic interface, IPager, and defining that as
return type solves the issue.

This is a breaking change

Cannot write unit tests with paging, because IClient returns Pager<T>,
a type that mocking frameworks have hard time to create stubs of.
Extracting a minimalistic interface, IPager<T>, and defining that as
return type solves the issue.
The default literal was added in C# v7.1
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

Successfully merging this pull request may close these issues.

Can we get an IPager<T> interface written for Pager<T> class?
1 participant