public void Configuration(IAppBuilder app) { var container = new Container(x => { x.For<IWordFinder>().Use<WireCharacterNameFinder>(); }); var resolver = new StructureMapDependencyResolver(container); app.UseIoC(resolver); var httpConfig = new HttpConfiguration(); httpConfig.Routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "api/{controller}/{id}", defaults: new { id = RouteParameter.Optional, controller = "Default" } ); app.UseOwinIoc(httpConfig); app.UseWebApi(httpConfig); // For more information on how to configure your application, visit http://go.microsoft.com/fwlink/?LinkID=316888 }