Examples of approaches to unit testing different kinds of code in C#.
Repositories
ardalis repositories
Just a repo for testing some things
A sample showing how to test a secure API endpoint using xunit, identityserver4, and environment variables
A sample showing how to test logging is working as expected in ASP.NET Core apps.
Example from first chapter of 'Refactoring' by Martin Fowler, with tests and translations
Todo application with ASP.NET Core Blazor WASM, Minimal APIs and Authentication
Ideas for things to review, projects to work on during developer live streams
Some projects used to demonstrate the performance of different unit testing frameworks for .NET Core
A very small library/package that includes a model validation attribute for ASP.NET Core projects.
Sample showing the down side of validating everywhere
A collection of validation rules for VS Web Tests
a pico library (or code snippets shed) to help you to easily implement Value Types in your C# projects without making errors nor polluting your domain logic with boiler-plate code.
Microsoft Version Number Library
Compare and evolve modern .NET architectures — from Vertical Slices to Clean Architecture, Modular Monoliths, and Microservices — using EF Core, Aspire, and Mediator.
Resources related to my Pluralsight course on this topic.
Dependency Injection in web forms with StructureMap
A general purpose utility and helper library for .NET development
A simple app showing perf gains of using WhenAll for parallel task execution.