Sample ASP NET Core 5 API using docker-compose to run integration tests. The API is a timesheet system sample that the employee of a company launch worked hours. Developed using .NET 5, SqlServer with Entity Framework Core 5, xUnit and Docker (containerized SQL Server and .NET 5 SDK).
Running the project locally requires initializing the database (SqlServer) on docker.
cd src
nuget restore
docker-compose up -d sql-server-database
dotnet run
Initializes the database (SqlServer) and the Api on docker.
cd src
docker-compose up timesheets-api
cd src
docker-compose up -d sql-server-database
dotnet test
cd src
docker-compose up integration-tests