Quantcast
Channel: Web API
Viewing all articles
Browse latest Browse all 4850

Orchestrating an in memory HttpServer unit test

$
0
0

Hello,

I am interested to self-host a Web Api service for integration testing purposes.

The nearest thing I could find to such an animal is actually a pretty good read thus far: In memory client, host and integration testing of your Web API service

I've got a fairly good grasp of what needs to be standing on its own, from configuration, server, through to client requests, pending responses. No worries there, maybe a few idiosyncrasies what is considered content, how to encode/decode, etc, but that's a scope for another topic.

One concern comes to mind, let's assume I can connect the ApiController (really, IHttpController, under the hood) under test with the client request. What guarantees do I have that the controller's bootstrapping will occur? That's all part and partial of connecting the controller with the server configuration, or we need to manually bootstrap?

If it matters, or helps, I am using NUnit to orchestrate the integration testing.

Thank you...


Viewing all articles
Browse latest Browse all 4850

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>