recurly-client-dotnet icon indicating copy to clipboard operation
recurly-client-dotnet copied to clipboard

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

Open aleevans opened this issue 4 years ago • 1 comments

Would it be possible to get an IPager<T> interface written for the existing Pager<T> class, and have Pager<T> implement it?

With an IPager<T> interface, the IClient interface could then be updated so that all methods which return a Pager<T> now return an IPager<T>.

This would allow my team to mock the pager for testing as well as create a wrapper with added logic.

aleevans avatar Oct 14 '21 21:10 aleevans

@aleevans Thanks for bringing both of this issues up. As stated in issue #662 I will make a feature request for this issue. This will be put in our backlog so in the meantime if you need the functionality sooner than our engineers are able to get to it feel free to consider making a PR for the features you would like added. As an open source repository we are always happy to work with engineers on PRs that are submitted. Otherwise we will follow up once the feature request is picked up and the new feature is ready for release.

rer7891 avatar Oct 21 '21 15:10 rer7891