This solution follows the Clean Architecture and it is a demo app for learning purposes.
- .NET Core 3.1
- ASP .NET Core 3.1
- MediatR
- FluentValidation
- XUnit, FluentAssertions & Moq
This will contain all entities, enums, exceptions, interfaces, types and logic specific to the domain layer.
This layer contains all application logic. It is dependent on the domain layer but has no dependencies on any other layer or project. This layer defines interfaces that are implemented by outside layers. For example, if the application needs to access a notification service, a new interface would be added to the application and the implementation would then be created in the infrastructure layer.
This layer contains classes to handler persistence and accessing external resources. These classes should be based on interfaces defined within the application layer.
This layer depends on both the Application and Infrastructure layers, however, the dependency on Infrastructure is only to support dependency injection. Therefore only Startup.cs should reference Infrastructure.