Clean Testing - Clean Architecture with .NET Core
summary
A live demo builds a Clean Architecture .NET Core solution template, wires up real services (EF Core migrations, ASP.NET Core Identity) and runs tests through the Mediator pipeline so validation, logging and behaviors execute. Tests focus on commands/queries with subcutaneous tests, use NUnit + FluentAssertions + Moq, and reset state with Respawn database reset. Demos show 18 tests in the template, 7 demo tests pass locally; typical full-suite runs ~1.8s, live stream took 8–16s.
AI-written summary · about
chapters (9)
- 0:00Start
- 4:30Typical Approach
- 6:02Clean Testing
- 8:01Subcutaneous Tests
- 10:21Testing Frameworks
- 13:07FluentAssertions
- 15:05Respawn
- 16:37Clean Architecture Solution Template
- 17:10Using the Solution Template
related talks
46mClean Testing: Clean Architecture with .NET Core
01h 05m.NET Testing Best Practices
54m.NET Testing Best Practices
43m.NET Testing Best Practices
58mTesting strategy for your ASP.NET Core micro-service
39mMake .Net Automation Great Again
53mTest Driven Application Security
01h 02mTesting First - Getting The How
