Enhance ASP.NET Core Localization with Automated Translations via Result FiltersIn my previous post on localization in a .NET Core Web API, I covered the basics of setting up localization and translating API responses into different languages based on the user’s requested language. In that example, we localized a single string f...Mar 27, 2025·7 min read·55
Understanding the Liskov Substitution Principle (LSP) with C#In our ongoing series on SOLID principles, we've already covered the Single Responsibility Principle (SRP) and the Open/Closed Principle (OCP). In this post, we'll dive into the Liskov Substitution Principle (LSP), the third principle in the SOLID ac...Aug 14, 2024·4 min read·193
Understanding the Open/Closed Principle (OCP) with C#In our previous post, we explored the Single Responsibility Principle (SRP), the first of the SOLID principles, which guides us in writing more maintainable and robust code. In this post, we delve into the second principle: the Open/Closed Principle ...Aug 12, 2024·4 min read·172
Understanding the Single Responsibility Principle (SRP) using C#This is the second post in our S.O.L.I.D Principles Using C# series. In the previous post, we discussed an introduction to S.O.L.I.D principles. In this post, we will dive deeper into the S in S.O.L.I.D, the Single Responsibility Principle (SRP), usi...May 1, 2024·6 min read·228
S.O.L.I.D Principles - A PrimerIn software development, there is a set of principles known as S.O.L.I.D principles. These rules help maintain strong, easily manageable code that can evolve with the project. They were established by Robert C. Martin, also known as Uncle Bob, in the...Apr 27, 2024·4 min read·172
Unit Testing in .NET Core - Bogus for Fake Data GenerationThis is the sixth post in our Unit Testing in .NET Core series! In the previous post, we looked at mocking dependencies in our unit tests. In this post we will explore how to generate realistic fake data in our unit tests using a library called Bogus...Jan 8, 2024·4 min read·132
Unit Testing in .NET Core - Mastering MockingThis is the fifth post in our Unit Testing in .NET Core series! In the previous post, we looked at writing better assertions in our unit tests. In this post, we will explore the concept of mocking in unit testing using xUnit, discuss different types ...Oct 7, 2023·9 min read·62