I’m trying to figure out how to properly integration test my managed wrappers over the
HttpClient class. Unit testing the things that depend on these wrappers is easy enough (you just mock the whole dependency), but I’d really like to be able to contact that actual endpoint that the client will be using in the wild. The expected benefit of doing this, for me, is:
- Enable me to verify routes are being published properly
- Validate that authentication are working correctly
- Ensure that the dependency injection configuration doesn’t have any holes
- And other integration test objectives
Does anyone have any frameworks or methods they are using to support this use-case. Would you mind sharing?