LeadershipTechnical ManagerTechnical Leadership

Session 04 - Architecture Governance

Premium

"Kiến trúc tốt không cần tài liệu 100 trang. Kiến trúc tốt cần automated tests để enforce rules." - Neal Ford


1. Architecture Fitness Functions

Concept

Fitness function là automated test kiểm tra architecture rules - thay vì dựa vào convention và hy vọng dev tuân thủ, ta viết test để bắt violations ngay trong CI/CD.

ArchUnitNET - Architecture Testing cho .NET

bash
dotnet add package TngTech.ArchUnitNET.xUnit

Layer Dependency Rules

csharp
using ArchUnitNET.Domain;
using ArchUnitNET.Loader;
Premium

Continue with premium access

Session 04 - Architecture Governance is part of the premium library. Sign in with a premium account to unlock the full lesson and the rest of this track.

01 Full premium lesson access
02 Deeper implementation notes
03 Ongoing content updates