Skip to content
#

Dependency injection

Dependency injection (DI) is an implementation of the dependency inversion principle with the aim of separation of concerns by separating the depndency's implementation from the class that's using it. That kind of abstraction makes it possible to have different implementations with the same public methods so the class using it, doesn't need to care which of the implementations is used. This is also especially useful for unit testing.

There are different types of dependency injection:

Here are 1,308 public repositories matching this topic...

My solution to the BirthdayGreetings Kata. As you’re a very friendly person, you would like to send a birthday note to all the friends you have. But you have a lot of friends and you are a bit lazy, it may take some times to write all the notes by hand. The good news is that computers can do it automatically for you.

  • Updated Oct 1, 2020
  • C#