Dependency injection in unit tests: Introducing Autofixture

Changing dependencies in your SUT (system under test) usually means that you have to revise all of your previous tests. This is because the default way of instantiating your SUT is newing one up and passing in any mocks it might need. This destroys test and code maintainability. Every time you make a change to Read more about Dependency injection in unit tests: Introducing Autofixture[…]

Dependency Injection: Frameworks

As I mentioned in a previous article, there are multiple dependency injection frameworks our there for .net framework. Here, we will be talking a bit about the most popular ones and show very simple examples of how to get started with them and how to use them. This is not an exhaustive list! There are Read more about Dependency Injection: Frameworks[…]

Dependency Injection: An introduction

What is dependency injection? Dependency injection is often confused with inversion of control. Inversion of control is a design pattern in which your classes delegate the responsibility of creating and disposing of any dependencies it might have. Dependency injection is a design pattern that supports inversion of control, in which a class requires any dependencies Read more about Dependency Injection: An introduction[…]