0

I would like to ask if it possible to wire up a full mvc/api (v5.2.3) site with the in memory HttpServer.

I am using owin and need to wire it up.

If it going to work I need to call static Startup() and Configuration(IAppBuilder app) in class Startup.cs in my integration test.

I read the article ASP.NET Web API integration testing with in-memory hosting it gave me a deeper understanding of the HttpServer, - but as always close but no cigar.

Can it be done?

5
  • Take a look a the answer I provided here that references the same article stackoverflow.com/a/37510032/5233410 Commented Jan 2, 2018 at 14:30
  • Here is another one that may prove useful stackoverflow.com/q/40423823/5233410 Commented Jan 2, 2018 at 14:51
  • This question can be easily be answered with a "Yes, it can." Now, is that enough, or do you want to clarify the actual problem you have run into that you need help to solve? Commented Jan 2, 2018 at 16:15
  • I would very much like to see an example on how to wire it all up in a unit test Commented Jan 2, 2018 at 22:08
  • Have a look to this stackoverflow.com/a/49202654/2928038 Commented Mar 9, 2018 at 22:06

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.