Please provide a 'how to write unit test for Web Api' including using Task/async ApiControllers'
The section on learning Web API needs to have a topic around writing unit tests. Web API home pages says it's 'easy to test' but then there are no topics around it. Please add a topic on unit testing
34
votes
1 comment
-
Lex commented
Until official documentation becomes available I recommend reading these two articles on in memory testing of Web API:
http://www.strathweb.com/2012/06/asp-net-web-api-integration-testing-with-in-memory-hosting/