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: