24 June 2016

Unit Test WebAPI 2 IHttpActionResult

Sample Unit test looking at a Controller returning the IHttpActionResult pattern (introduced in WebApi2) for reference.

Motivations behind the new IHttpActionResult (WebApi2) vs the old HttpResponseMessage (WebApi1)
http://weblogs.asp.net/dwahlin/new-features-in-asp-net-web-api-2-part-i
http://stackoverflow.com/questions/21758615/why-should-i-use-ihttpactionresult-instead-of-httpresponsemessage
http://www.asp.net/web-api/overview/testing-and-debugging/unit-testing-controllers-in-web-api

No comments: