TimeProvider and Autofixture AutoMoq Issue

Tried to use the new TimeProvider in .NET with AutoFixture AutoMoq and had issues?

August 14, 2024 · 6 min

Primary Constructor and Logging Don't Mix

Ever tried to use Primary Constructors with LoggerMessage source code generator based logging calls? It doesn’t work how you think!

April 4, 2024 · 4 min

Test Your .NET HttpClient Based Strongly Typed Clients Like a Boss

Looking at using HttpClient Interception library to setup and create a HttpClient instance to allow for testing strongly typed client classes.

June 29, 2021 · 5 min

Setting Content for HttpClient Testing with JSON.NET and System.Text.Json

Setting up matches with HttpClient Interception library is one thing, but configuring the data it can return is another. In this post we take a look at the functionality around setting up the content payload to return.

June 14, 2021 · 4 min

Extending HttpClient Testing With Templating

Continuing the series of HttpClient Interception library by Just Eat by looking at how to use templating to reuse the same bundle definitions across multiple tests.

June 8, 2021 · 4 min

Defining HttpClient Test Requests by Using a Bundle

Taking a look at how we can easily define multiple request templates when testing with the HttpClient Interception library from Just Eat Tech.

May 18, 2021 · 5 min

Catching all the Requests while Testing with HttpClient

Making sure tests fail if not all request matches are defined using the HttpClient Interception library from Just Eat Tech.

May 11, 2021 · 6 min

Beginning to Make Testing with HttpClient Easier

Introduction to the basics of setting up the HttpClient Interception library from Just Eat Tech to allow for testing items which rely on HttpClient.

May 4, 2021 · 5 min

Easily Create and Manipulate Mock Anonymous Data for Unit Tests

Looking to easily create mock data for unit testing, harnessing the power of AutoFixture, C#9 Records and the Builder Pattern to aid with consistency and maintainability.

April 20, 2021 · 8 min

Arrange, Act, Assert - Why I Still Comment Unit Tests

Using the Arrange, Act, Assert setup in unit tests, why do I still add the comments? Read on to find out.

January 26, 2021 · 4 min