Is there guidance and examples on how to setup and structure tests, in-memory, for Microsoft Web API class project which is independent of hosts (to put it simply it is not a Web API inside ASP.NET MVC project).

The Web API class library itself is boot strapped with configuration being set up via HttpConfiguration.

I would like to know if there is formal guidance and examples of the various tests that can be written for this setup.

有帮助吗?

解决方案

I'm not aware of any formal documentation available but here are two good blog posts - one by Kiran and the other one by Filip.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top