.Net Core project example with basic authentication between Razor Web Project and WebApi Project using different roles and permissions.
All commands described in this section will be executed in root project after cloning the repository.
dotnet build
dotnet run --project src/WebApi/WebApi.csproj
WebApi run in https://localhost:5001 by default.
dotnet run --project src/Web/Web.csproj
Web run in https://localhost:1000 by default.
To log in, you can see all users and password created by default in src/WebApi/Infrastructure/Persistence/Seed/UserDataGenerator.cs.
Examples:
- admin:admin
- pageone:pageone
dotnet test
It is also possible to execute tests per project.
dotnet test test/WebApi.Test
dotnet test test/Web.Test
Get coverage value using msbuild.
dotnet test /p:CollectCoverage=true /p:Exclude="[xunit.*]*
or you can check the last build here.