NET 5.0

Simple Example of Calling REST API with HttpClient in .NET 5.0

Beginner friendly usage of a HttpClient in a console application to make a simple request but using dependency injection to create HttpClient instances.

Posted on 25 May 2021

Generating Date of Birth values for .NET5.0 Record types using AutoFixture

Ever needed to generate realistic date of birth values for your anoymous unit test data? Sick of setting the value manually and seeing your own date of birth propagate through codebases as developers copy 'n' paste your example? Time to get AutoFixture to do the heavy lifting!

Posted on 09 March 2021

Default .NET 5.0 WeatherForecastController as an Azure Function

Looking into what it would take to implement the default aspnet web api template WeatherForecastController as an Azure Function.

Posted on 23 February 2021

AutoFixture and .NET 5.0 Record Types

Does AutoFixture and the new .NET 5 Record Types work together?

Posted on 19 January 2021

Debugging Dependency Injection Service Registrations in .NET 5.0

Investigating a technique on how to debug service registrations when functionality isn't working as expected.

Posted on 12 January 2021

Top Level Statements and Dependency Injection in .NET 5.0

Exploring Top Level statements in .NET 5 and manually setting up and using dependency injection with the Microsoft container.

Posted on 05 January 2021