☄️ Master the Modular Monolith Architecture: https://bit.ly/3SXlzSt
📌 Accelerate your Clean Architecture skills: https://bit.ly/3PupkOJ
🚀 Support me on Patreon to access the source code: https://www.patreon.com/milanjovanovic
Do you know how to enforce your software design rules using automated tests? These tests are called architecture tests. You can use them to implement various coding and naming conventions in your system. This makes the system easier to maintain. I will show you how to write architecture tests for enforcing software design rules in this video.
Join my weekly .NET newsletter:
https://www.milanjovanovic.tech
Read my Blog here:
https://www.milanjovanovic.tech/blog
Chapters
0:00 What can you do with Architecture Tests?
0:57 Installing the NetArchTest.Rules library
1:40 Design rule 1: Domain events should be sealed
5:00 Design rule 2: Domain events should end with DomainEvent
7:09 Design rule 3: Entities should have a private parameterless constructor
12:10 Architecture rule: Domain should not have other dependencies