Skip to content

This project serves as an example of how to use and test Entity Framework Core in an ASP.Net Core application.

License

Notifications You must be signed in to change notification settings

dgarciarubio/AspNetCore.Examples.EntityFrameworkCore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AspNetCore.Examples.EntityFrameworkCore

This project serves as an example of how to use and test Entity Framework Core in an ASP.Net Core application.

It makes use of the following technologies and projects:

How to run

Make sure to have docker running, and run the Docker Compose project from Visual Studio, or from a terminal by executing docker compose up in the root folder.

Call the endpoints via SwaggerUI

Access the web api at http://localhost:54876/swagger and try to call the endpoints for the resources CRUD operations.

Call the endpoints via ScalaR

Access the web api at http://localhost:54876/scalar/v1 and try to call the endpoints for the resources CRUD operations.

How to test

Make sure to have docker running, and run the tests from the Test Explorer in Visual Studio, or from a terminal by executing dotnet test .\AspNetCore.Examples.EntityFrameworkCore.sln in the root folder. More about ASP.NET Core 9.0 integration tests

To run tests and generate an html coverage analysis report, run the coverage_report.ps1 powershell script in the root folder. More about code coverage for unit testing in .NET

About

This project serves as an example of how to use and test Entity Framework Core in an ASP.Net Core application.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published