Simple play icon Course
Skills

Getting Started with Dependency Injection in .NET 2

by Jeremy Clark

Dependency injection helps us write better code. But when you don't understand the why and how, it can be baffling. This course gives you a good foundation of the concepts and patterns so you can start writing code that is easy to change and test.

What you'll learn

Tight coupling makes our code hard to change and test. In this course, "Getting Started with Dependency Injection in .NET", you will learn the foundational knowledge to break tight coupling with Dependency Injection. First, you will learn how to use constructor injection to create loosely-coupled code. Next, you will see how to snap those loosely-coupled pieces together in different ways to easily change functionality. Then, you will discover how easy it is to unit test code that uses dependency injection. Finally, you will explore some of the magic of dependency injection containers. When you are finished with this course, you will have the skills and knowledge of dependency injection needed to break tight coupling and write more maintainable code.

Table of contents

Course Overview
1min

About the author

Jeremy Clark makes developers better. By drawing on over 15 years of experience in application development, he helps developers take a step up in their skill set with a focus on making complex topics approachable regardless of skill level. He is a Microsoft MVP for .NET and has authored a number of articles about C# on his blog.. He loves sharing his experiences and has delivered over 300 technical presentations in the last 9 years in the United States and Europe. Jeremy lives in northern Washin... more

Ready to upskill? Get started