Skip to content

Latest commit

 

History

History
27 lines (24 loc) · 1.67 KB

README.md

File metadata and controls

27 lines (24 loc) · 1.67 KB

CI

WebApiV2IntegrationTestsDemo

Using integration tests with web api v2 projects

In this repo, i m exploring various ways in order to setup integration tests with web api v2 projects

1️⃣ Example01 use controller(s) without dependency injection

2️⃣ Example02 use controller(s) and service(s) with unity dependency injection

3️⃣ Example03 use controller(s) and service(s) with ninject dependency injection

4️⃣ Example04 use controller(s) and service(s) with autofac dependency injection

5️⃣ Example05 use controller(s) with owin

6️⃣ Example06 use controller(s) with owin self hosting

💡 Integration tests are based on in-memory HttpServer for examples 1 to 4.

💡 Integration tests are based on owin for examples 5 to 6.

Tools : vs22, net 4.8, web api v2, owin, unity, ninject, autofac, integration-testing