In my first post I said I wanted Vitreous to cover more of the setup a clean architecture project needs. Version 0.6.0 does that with two commands: one installs the templates, the other creates a layered solution that builds with no warnings and comes with 34 passing tests.
Underneath, dispatch got faster too. Sending a query takes about 90 ns and allocates nothing, whether its handler is the first or the 200th.
Two commands
I wanted to give people an easier way into Vitreous and into clean architecture, especially to try them in a new project:
dotnet new install Vitreous.Templates dotnet new vitreous-clean -n Shop
Enter fullscreen mode
Exit fullscreen mode
That creates four projects and their tests:
Shop/
src/ Shop.Domain/ Shop.Application/ Shop.Infrastructure/ Shop.Api/ tests/ Shop.Domain.Tests/ Shop.Application.Tests/ Shop.Architecture.Tests/ Shop.Api.Tests/
Enter fullscreen mode
Exit fullscreen mode
The domain has an Order aggregate with its value objects and events.…