azure-authentication-cloud-function

Authenticate Azure Function to Azure Storage Account using Managed Identity or application service principal

Reading Time: 7 minutes Azure Functions and Azure Storage Account are two of the most popular services offered by Microsoft Azure. Azure Functions is a serverless computing service that allows you to run event-driven code without having to manage any infrastructure. On the other hand, Azure Storage Account is a cloud-based storage solution that offers a wide range of …

XUnit testing

Strongly typed xUnit theory test data with TheoryData

Reading Time: 5 minutes TheoryData class In xUnit, test methods can be decorated with attributes like [Fact] or [Theory]. When a test method is decorated with the [Theory] attribute, it means that the method is not testing a single case but instead testing a general rule that should hold true for multiple sets of data. TheoryData is a class …

Control the RuleSet executions with FluentValidation in .NET6

Reading Time: 9 minutes FluentValidation is an open-source library for .NET that provides a fluent API for building validation rules for objects. It allows developers to express the rules for validating an object in a clear and readable way, making it easy to understand and maintain. In this article, we will explore FluentValidation and how it can be used …

Build a command line application in .NET 6 with System.CommandLine

Reading Time: 6 minutes Purpose of Command Line programs Command-line applications, or CLIs, can be a convenient and powerful way to perform simple tasks quickly and efficiently. Some reasons why it might be interesting to develop a command-line application include: CLIs can be faster to use than graphical user interface (GUI) applications, as the user does not need to …