Writing
All posts
Practical C#, .NET, and ASP.NET Core tutorials.
8 posts matching “test”

Respawn for Integration Tests in ASP.NET Core
Shared database state makes integration tests flaky. Respawn resets tables between tests so WebApplicationFactory and Testcontainers stay fast, isolated and reliable.

Integration Tests in ASP.NET Core
Unit tests miss the full request pipeline. Integration tests with WebApplicationFactory, Testcontainers and Respawn verify your ASP.NET Core API against a real PostgreSQL database.

Clean Architecture in One Project
You do not need a class library per layer to follow Clean Architecture. One ASP.NET Core project, clear namespaces and NsDepCop or architecture tests can enforce the same dependency rules as a multi-project solution.

Mapping with Facets in .NET
Facet is a powerful source generator tool that can help you improve your mapping code. It's easy to use, test and integrate with other libraries.

Parameterized Tests with xUnit in .NET
Parameterized tests are a powerful way to reduce repetition and improve clarity in your unit tests.

Unit Testing using xUnit
Unit testing is essential for maintaining code stability, preventing regressions and ensuring confidence in changes.

Architecture Tests in .NET
Introducing architectural tests is an effective way to enforce rules and prevent violations, reducing the risk of technical debt.

TUnit - The Future of Testing in .NET
TUnit is a modern, flexible, and fast testing framework for .NET 8 and beyond. It promises more control over setup, execution and style of tests.
The next issue lands Thursday.
Join 3,000+ .NET engineers. Free, focused, and easy to leave.