C# Tip: Use custom Equality comparers in Nunit tests
When writing unit tests, there are smarter ways to check if two objects are equal than just comparing every field one by one. Continue readingHow to add Dependency Injection, Configurations, and Logging in a .NET 7 Console Application
By default, you cannot use Dependency Injection, custom logging, and configurations from settings in a Console Application. Unless you create a customHost
!
Continue reading
Davide's Code and Architecture Notes - Testing Pyramid vs Testing Diamond (and how they affect Code Coverage)
Testing Pyramid and Testing Diamond are two ways of managing automated tests. We’re going to learn what they are and how they are built in relation to Unit Tests, Integration Tests, and End-to-end Tests. Continue readingUnderstanding IOptions, IOptionsMonitor, and IOptionsSnapshot in .NET 7
There are several ways to handle configurations in a .NET Application. In this article, we’re going to learn how to useIOptions<T>
, IOptionsSnapshot<T>
, and IOptionsMonitor<T>
Continue reading
C# Tip: Advanced Switch Expressions and Switch Statements using filters
We all useswitch
statements in our code. Do you use them at their full potential?
Continue reading