https://www.nuget.org/packages/LeanArchitecture.Dotnet.Templates.Project/
├───class-xunit-lib
│ ├───src
│ │ └───LeanArchitecture.Project
│ │ LeanArchitecture.Project.csproj
│ │
│ └───tests
│ └───LeanArchitecture.Project.Tests
│ LeanArchitecture.Project.Tests.csproj
│
├───sln
│ │ azure-pipelines.yml
│ │ editorconfig
│ │ gitignore
│ │ global.json
│ │ LeanArchitecture.Solution.sln
│ │ nuget.config
│ │
│ ├───src
│ │ readme.md
│ │
│ └───tests
│ readme.md
│
└───xunit
└───LeanArchitecture.Project.Tests
LeanArchitecture.Project.Tests.csproj
│ azure-pipelines.yml
│ CleanArchitecture.Solution.sln
│ editorconfig
│ gitignore
│ global.json
│ nuget.config
│ readme.md
│
├───src
│ │
│ ├───Application
│ │
│ ├───Infrastructure
│ │
│ └───Presentation
│
└───tests
│
├───Application
│
├───Infrastructure
│
└───Presentation
- Microsoft.NET.Test.Sdk, Version: 17.1.0
- coverlet.collector, Version: 3.1.2
- coverlet.msbuild, Version: 3.1.2
- Moq, Version: 4.17.2
- Shouldly, Version: 4.0.3
- xunit, Version: 2.4.1
- xunit.runner.visualstudio, Version: 2.4.3
- Checkout
- Nuget Restore
- Build
- Test with Code Coverage
- Install ReportGenerator tool (version 5.0.4)
- Generate Coverage Reports
- Publish Test Results in Azure Devops.
- Publish Code Coverage Results in Azure Devops.
- Publish Artifacts in Azure Devops.
Clean Solution Template
dotnet new mz-clean-architecture-sln -n [Solution Name] -o [Solution Name Location]
Lean Solution Template
dotnet new mz-lean-architecture-sln -n [Solution Name] -o [Solution Name Location]
Lean Test project Template
$> cd [Solution Name Location]
$> dotnet new new mz-lean-architecture-xunit -n [Project Name] -o .
Lean Class Library and Test Project Template
$> cd [Solution Name Location]
$> dotnet new mz-lean-architecture-class-xunit-lib -n [Project Name] -o .
Libraries Project
$> cd [Solution Name Location]
$> dotnet sln add .\src\[Project Name]\[Project Name].csproj --solution-file tests\[Project Name]
Test Project
$> cd [Solution Name Location]
$> dotnet sln add .\tests\[Project Name].Tests\[Project Name].Tests.csproj --solution-file tests\[Project Name].Tests
Creating a new solution named "Explorer":
$> dotnet new mz-lean-architecture-sln -n ExplorerSolution -o .
$> dotnet new mz-lean-architecture-class-xunit-lib -n Explorer.Library -o .
$> dotnet sln add .\src\Explorer.Library\Explorer.Library.csproj --solution-folder src\Explorer.Library
$> dotnet sln add .\tests\Explorer.Library.Tests\Explorer.Library.Tests.csproj --solution-folder tests\Explorer.Library.Tests
- @masterzdran