Bootstrap StructureMap.WebApi2 from OWIN Native Host WepAPI2

I have a WebAPI project that I myself host in an integrated test suite project to have tests install and break a WebAPI application in the process by following these instructions.

http://www.asp.net/web-api/overview/hosting-aspnet-web-api/use-owin-to-self-host-web-api

https://ovaismehboob.wordpress.com/2013/10/28/loading-web-api-controllers-from-other-libraries-when-self-hosting-web-api/

Which works great except the WebAPI project is using StructureMap.MVC5 and I can't figure out how to load it?

This does not work:

    [TestFixtureSetUp]
    public void FixtureSetUp()
    {
        StructuremapMvc.Start();
        WebApp.Start<Startup>(BaseAddress);
    }

      

+3
asp.net-mvc asp.net-web-api owin structuremap3


source to share


No one has answered this question yet

Check out similar questions:

39
Hosting WebAPI Using OWIN on Windows Service
eleven
Difference Between HTTP Module and OWIN Middleware
4
Self-service self-serving WebAPI
3
Business WebAPI / OWIN Confusion
2
System.Web.Http.HttpRouteCollection: What is the equivalent of RouteCollection.IgnoreRoute?
1
Web Api 2 Self Host with Individual Account
1
Null parameter with MVC web interface in standalone OWIN host
0
Can I use owin for self-hosting WebApi in visual studio 2010 / Framework 4
0
use owin for self-loading web api
0
Standalone Web API with OWIN on EC2



All Articles
Loading...
X
Show
Funny
Dev
Pics