Skip to content

aimenux/WebApiV2IntegrationTestsDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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