ASP.NET Web API In-Memory Hosting Integration Test and Ninject

A while back, I posted how I used StructureMap along with the new ASP.NET self-host features to do integration tests on my ASP.NET Web API. Since that post, I’ve tried out Ninject with some new projects and, thanks to Filip, I discovered In Memory Web Hosting. This post will go over how to integration test an ASP.NET Web API project that uses Ninject for IoC and in memory hosting. I borrow from Filip’s post with adaptations for my purposes.…

Integration Test ASP.NET Web API with StructureMap

Update 2: I have written a new post going over how to setup StructureMap with the RC of ASP.NET Web API. Go check that out as well. Update: This post was written against the Beta of WebAPI. Word out is that this will change for the release candidate. I have not yet done a new post for the release candidate. You can read some about these changes here. I intend to write a new post once the RC has been released.…