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.
Posted on 29 June 2021
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.
Posted on 14 June 2021
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.
Posted on 08 June 2021
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
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.
Posted on 18 May 2021
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.
Posted on 11 May 2021
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.
Posted on 04 May 2021
- Code (103)
- C# (97)
- Thoughts (37)
- aspnetcore (35)
- Remote Working (27)
- Covid-19 (26)
- Azure (18)
- Azure Functions (17)
- Functions (16)
- Unit Testing (16)
- Dependency Injection (11)
- Refactoring (10)
- Design Patterns (10)
- HttpClient (7)
- AutoFixture (7)
- NET 6.0 (6)
- NET 5.0 (6)
- Integration Tests (6)
- Webhooks (6)
- Repost (6)
- Dev Tips (5)
- General (3)
- Resharper (3)
- Moq (3)
- dotnetcore (3)
- Public Speaking (2)
- Project Tye (2)
- FluentAssertions (2)
- Preview (2)
- Fitbit (2)
- NET 7.0 (1)
- Pulumi (1)
- SQL (1)
- Visual Studio (1)
- Razor Pages (1)
- Twitter (1)
- Quick Tip (1)
- Just Eat (1)
- Http Client (1)
- CLI (1)
- App Service (1)
- Azure AD B2C (1)
- ASP.NET 5.0 (1)
- Tip (1)
- Worker Services (1)
- net5 (1)
- Redis (1)
- Tye (1)
- Autofac (1)
- Buy Me a Coffee (1)
- SpaceX (1)
- netcore (1)
- Feature Management (1)
- Back to basics (1)
- Background Services (1)
- Configuration (1)
- Localisation (1)
- HTTP Headers (1)
- Published (1)
- Language Features (1)
- Design Principles (1)
- Top Tip (1)
- Middleware (1)
- NDepend (1)
- Reviews (1)
- Rest (1)
- Refit (1)
- vsts (1)
- aspnetmvc (1)
- Hardware (1)
- Surface (1)
- WCF (1)