The best way I've found to do this is with a Self Host WebApi target project. Then, if you want to run these tests on a build server, etc., you do not need an installed web server.
This is a pretty good walk when setting up Self Host.
, HttpSelfHostServer HttpSelfHostConfiguration .