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
We’ve made a bunch of improvements around unit testing in ASP.NET Web API 2. You can read about some of the improvements here:
You should also check out the work we have done with IHttpActionResult and HttpRequestContext to make unit testing even easier.
Steve Gentile commented
Great, glad to see this picked up ~20 months later :)
Better late then never when it comes to writing tests!
Until official documentation becomes available I recommend reading these two articles on in memory testing of Web API: