Home About

All posts tagged with "Dependency injection"

A collection of 2 posts tagged with "Dependency injection"

Page 1 of 1

C# - How to mock the HttpClient for tests when it is a dependency

In this post I will go through how you can mock the HttpClient class in C#. This is often needed as everything we develop these days »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on HttpClient, HTTP, C#, Dependency injection, Test doubles, Mocking 11 October 2018

Advantages and disadvantages of IoC containers and reasons to use them

I used IoC containers for the first 5 years of my career. The last year I have been using them very little. This is due to »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on C#, .Net, Dependency injection, Ninject 30 July 2017
Page 1 of 1
Rss
Twitter
LinkedIn
profile for Peter Rasmussen at Stack Overflow, Q&A for professional and enthusiast programmers
Peter Daugaard Rasmussen - developer, Consultant, Blogger © 2021 Cookie policy