Exploring various hosting ways in order to setup a web api
In this repo, i m exploring various hosting ways in order to setup a web api
1️⃣
Example01
use default template with controller(s) and top level statements program class2️⃣
Example02
use startup class with controller(s) and program class based on generic host3️⃣
Example03
use startup class with controller(s) and program class based on web application4️⃣
Example04
is very similar toExample03
with an elegant way to call startup class behind the scenes5️⃣
Example05
use minimal api template
Tools
: vs22, net 6.0, web api, serilog, integration-testing, fluent-assertions, nsubstitute