How to Mock IConfiguration.GetValue in ASP.NET Core
In this article, we'll take a closer look at how we can mock IConfiguration.GetValue when writing unit tests in ASP.NET Core. Let's start!...
MY ARTICLES:
In this article, we'll take a closer look at how we can mock IConfiguration.GetValue when writing unit tests in ASP.NET Core. Let's start!...
In this article, we'll look at how to use source generators to validate IOptions and ensure they meet the required configuration expectations. [sc name="github"...
In this article, we'll look closely at the Carter library and how we can use it in our ASP.NET Core projects. Let's get started! What...
In this article, we'll look at source-generated RegEx and how it can improve performance in our .NET applications. ...
In this article, we'll explore why we might need sortable unique IDs in .NET and how to create them with the NewId NuGet Package. ...
In this article, we'll take a look at some best practices when it comes to logging in .NET with Serilog. Logging is essential to any application we build and Serilog is one of the major logging providers. For this reason, we've prepared some Serilog best practices to...
In this article, we will explore how we can improve our Minimal API endpoints in .NET with automatic registration. Let's dive...
In this article, we'll explore how to use the NetArchTest.Rules library to write architecture tests for our .NET applications. Let's...
In this article, we'll see how we can apply unique constraints to a property in EF (Entity Framework) Core using the code-first approach. ...
In this article, we'll take a look at how to inject a DbContext instance into an IHostedService. We'll also point out some important concepts we should be aware of. [sc name="github"...
In this article, we'll look closer at how we can overwrite the DateTime.Now property when testing applications in .NET. Let's dive in!...