recurly/recurly-client-dotnet

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

aleevans opened this issue · 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 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.