Categories
Programming

Using Unity With WebAPI Testing

We are currently using WebAPI.Testing by Jonathan Channon to test an ASP.NET Web API project from the outside in (rather than testing the controllers, it tests from outside of the routing, which means you can test your routes and controllers in one hit). We are using SpecFlow and NUnit, but this doesn’t apply specifically to […]

Categories
Programming

Adding Unity to Your Web API Project

Adding Unity V3 to your ASP.NET Web API project is so easy it very nearly hurts. Despite this, I can foresee a couple of “duh” moments if you don’t spot a couple of minor details. To get started, you just open up the NuGet package manager, search online for Unity and select the appropriate version […]