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

Poor testability without hitting live API #16

Open
markembling opened this issue Apr 17, 2019 · 7 comments
Open

Poor testability without hitting live API #16

markembling opened this issue Apr 17, 2019 · 7 comments
Milestone

Comments

@markembling
Copy link
Owner

markembling commented Apr 17, 2019

Right now, testing is pretty much reliant on hitting the live API in integration tests. This needs to change so all the independent bits of behaviour (e.g. deserialisation of results) does not depend on hitting the live API and hard-coding live data which may change over time.

May have an impact on the public API, so ideally would happen before v1.0.0.

@markembling markembling added this to the v1.0.0 milestone Apr 17, 2019
@SeanFarrow
Copy link

Has any of this been done.

I can see other benefits:
Allow the use of HttpClient as well as System.Text.JSON.
Allow the use of Polly for retries.

I've got a codebase that is a AWS lambda function that by default uses System.Text.JSON for deserialization and HttpClient to deal with HTTP calls. I have a need to use this repo for postcode validation, but hte previous limitations a\e meaning I['m brining in more packages (newtonsoft.json and RestSharp) than I really need too. I'm happy to help where I can making this more testable.

@markembling
Copy link
Owner Author

I made a start ages ago on a bunch of stuff which, IIRC, would have been the first steps to this issue but honestly it's been so long that I'd need to refresh myself as to what I was actually doing there. It's the stuff in the vnext-wip branch. But beyond that, no, no progress - the last couple of years have left me with little time unfortunately and this all got a bit left behind.

@SeanFarrow
Copy link

SeanFarrow commented Aug 15, 2021 via email

@markembling
Copy link
Owner Author

Please do 🙂

@SeanFarrow
Copy link

SeanFarrow commented Aug 15, 2021 via email

@markembling
Copy link
Owner Author

I think it would be good to keep that if possible but I'm not wedded to it. I could be wrong, but I think the only place it'd really matter is older .NET Framework apps which use it. Since this isn't at 1.0 yet, I feel that do have flexibility in terms of breaking changes if it makes sense going forward.

@SeanFarrow
Copy link

SeanFarrow commented Aug 15, 2021 via email

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