I have been looking at unit testing a ASP.Net WebAPI project. I can obviously test controller Get methods easily in terms of the data it returns however I was looking at testing things like headers.
I have used NancyFX before and this provides a nice clean testing capability that returns a proper HTTP response even though no client/server has been setup.
The alternative I can see in WebAPI is to use HttpServer and HttpConfiguration to run a server in-memory.
If I do this I was wondering if someone knew what the performance of it is. If its not that great then it becomes an integration test unfortunately.
Simple scenario, I want to test the response header content type. Without the in-memory configuration I'm not sure how you test that in WebAPI