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?

Martin Andersen
  • 2,460
  • 2
  • 38
  • 66
  • Take a look a the answer I provided here that references the same article https://stackoverflow.com/a/37510032/5233410 – Nkosi Jan 02 '18 at 14:30
  • Here is another one that may prove useful https://stackoverflow.com/q/40423823/5233410 – Nkosi Jan 02 '18 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? – sisve Jan 02 '18 at 16:15
  • I would very much like to see an example on how to wire it all up in a unit test – Martin Andersen Jan 02 '18 at 22:08
  • Have a look to this https://stackoverflow.com/a/49202654/2928038 – PKV Mar 09 '18 at 22:06

0 Answers0