19-02-2022 Update: Unit tests are added.
This project is a simple Contacts app as a Web API integrated with local PostgreSQL database using SwaggerUI as test interface..NET 6.0 is used in this project.
For testing, you need to install PostgreSQL and an IDE if none exists.Visual Studio 2022 Community Edition is recommended since this repository includes the whole solution. You can choose any IDE you like which supports .NET 6.0. If you prefer using different database system, don't forget to refactor controller, context and connection string for your needs. When using different database system, refactoring the migration is also recommended.
It is assumed that you have installed PostgreSQL with default settings and Visual Studio 2022 Community Edition as IDE.
- Open the solution in Visual Studio.
- Start the database migration. If you already have a database and want to use it, you can skip this step.
- Run the application.
Application opens your default browser with SwaggerUI at the specified URL. You can also check database operations using RDBMS Tools such as pgAdmin.
Feel free to ask your questions at [email protected].