Recently Updated Pages
Unit Test Cheat Sheet
Here’s a list of elements for unit testing in Visual Studio using MSTest. Documentation for Visu...
C# Unit Tests with Async Task Signature
When writing unit tests, it’s good to standardize as much as possible.This includes the method si...
Unit Testing for an Exception
Sometimes, a unit test needs to ensure a particular exception type occurs. Here’s how to check t...
NET Core Test API
We have a standing REST API with various endpoints for simulating different method types, return ...
Long Numbered List Randomly Changes
Documentation Open the Network VLANs listing, and add a new entry for the VLAN. Main Sw...
WYSIWYG Numbered List Resetting Issue
Some list number text, starting a numbered list. More list number text, continuing the same nu...
#nullable Warning
If the compiler is giving you warnings about nullable reference types, then you may need to enabl...
VS IDE Suppress Compiler Warnings Project Wide
There are some cases where it is necessary to suppress IDE compiler warnings that apply to the en...
Unit Testing Conventions
Suppress Async Warning Project-Wide Since we have several calls to base classes for diagnostics ...
NET Core Background Services
NOTE: Refer to this page for how to register and consume a background service: Consuming NET Core...
Unit Testing with IServiceProvider
When you create unit tests for class types that directly use DI to retrieve dependencies, you wil...
Duplicating .NET Core DI
NOTE: If you are looking for how to access DI services, see this: HowTo Access DI Services Here ...
Consuming NET Core Background Service with DI
To properly consumes a background service from a controller or another service, it must be regist...
Consuming Services Inside Startup
During Startup.ConfigureServices During application startup, the Startup.ConfigureServices metho...
C# Disposed in Derived Types
People make lots of references to Microsoft articles about how to properly handle Dispose in deri...
Docker Space Full
Here are some things to check on when the disk on a docker host gets full sudo docker system p...
Layout Service
The layout service provides the means to display and swap in outer-frames of an app. This servic...
Strongly Typed Constant Parameters
You will eventually run into the need for a function to accept a restricted set of value for a pa...
PostGreSQL .NET DateTime Usage
.NET EF Core 6 made a breaking change to how DateTime is stored in PostGreSQL. This article expl...
PostgreSQL Permissions
Here are three major points you need to understand about object ownership: Only a superuser ...