I’m building an api that uses OAuth2. I’ve successfully unit tested all of the individual pieces but now I need to do some integration testing. Basically I want to be able to inspect the http responses from the server to make sure everything is in working order. Ideally I’d like to be able to spin up the web developement server in Visual Studio to host the site in and then make a bunch of requests to it and inspect the results.
What’s the best approach to doing this and what tools should I be using?
I would recommend you deploying your application on a staging server (maybe even as a part of the build process so that this would be a single button click action) and then firing the HTTP client requests against this server, the way a real .NET client is supposed to use your API.