Example of how you can set up an web api with well defined arcitecture, unit testing and customized open api documentation
Based on Swachbuckle so you ned to add
Install-Package Swashbuckle.AspNetCore -Version 6.9.0
- Custom url (api/docs)
- Customized gui
- Enrich auto documentet controllers
See the a OpenApiInstaller for example code
- Look at TestBaseDb to see how you can setup a testbase using InMemoryDb
- Look at WeatherRepositoryTest to see how you easely can unit test your repository
- I keep my plumming code in the catalouge Infrastructure.
- I use Installers to have a clean setup and make sure that each layer keep hold of it's own dependencyes
- Example DataAccessInstaller