Creating a simple Kubernetes Operator in .NET

Creating a Kubernetes operator can seem a bit overwhelming at first. To help, there’s a simple NuGet package called CanSupportMe.Operator which can be as simple as watching for a secret or config map or creating a custom resource definition (CRD)Read More

The NuGet Packages I Use

A list of the NuGet packages I regularly use. Last updated: 2024-01-14

Setting up an Arrange, Act, Assert comment template in Visual Studio 2022

Insert arrange, act and assert comment headers into a C# file by typing aaa

HTTP Client Factory (IHttpClientFactory) mock using NSubstitute

An NSubstitute version of a simple mock to allow HttpClient.GetStringAsync to always return a specified string.

.NET Container Running as Non-Root in Kubernetes

A quick guide to running .NET containers as non-root, non-privileged users.

PowerShell TDD with Pester – Adding More Rules (part 3 of 3)

This final article will cover reading mocked files and retrieving the version number from the CSProj or Chart.yaml file.

PowerShell TDD with Pester – Adding More Rules (part 2 of 3)

Adding more rules to the version number generator to handle things like bug fixes to major versions, pre-release labels and build labels

PowerShell TDD with Pester – Setup and Basic Tests (part 1 of 3)

This article is covering how I built a function to generate a new version number for a NuGet package based upon the version number is a csproj file and the latest published version.

Test Driven Development (TDD) – C# – Finishing the App (part 5 of 5)

This fourth and final article will add some error handling to the blog list retrieval and also populate the BlogPostEntry object with values from the API.

Test Driven Development (TDD) – C# – Blazor Server with bUnit (part 4 of 5)

In this third article on building an app using TDD, we’ll build a blog list component and add it to the default page. We’ll be using bUnit for the testing of this component.