C# 12 primary constructors work well for dependency injection but less so for validation or DTOs. Our recommendations, including how to name the parameters.
Refit turns a C# interface into a typed, injectable HTTP client. Set one up in a .NET worker service, define routes, and inspect responses with ApiResponse<T>.
Stop writing your own IClock wrappers. .NET 8's TimeProvider gives you a built-in time abstraction, and FakeTimeProvider makes time-dependent code easy to test.
When building objects in tests, there are 3 design patterns that assist with building test objects - Factory pattern, Object Mother, and Builder pattern.
The Guardians of the Galaxy's travel log app has code smells. Clean it up with built-in and custom guard clauses from the Ardalis.GuardClauses package.