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.
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.
Jeremy Clark is an application developer, technical speaker, and Microsoft MVP with over 13 years of experience in all aspects of the development lifecycle. After hours, he puts together demos and technical articles for JeremyBytes.com, a website focusing on .NET technologies.
Course Overview Hi everyone. My name is Jeremy Clark. Welcome to my course, Getting Started with Dependency Injection in .NET. I am an international speaker and consultant who makes developers better. Like most developers, I was introduced to dependency injection completely backward. I was given an application that already had a dependency injection container and told, good luck. After I took a step back and understood the concepts, I found that dependency injection can make my code easier to maintain, extend, and test. This course is a practical introduction to the concepts and patterns of dependency injection. Some of the major topics that we will cover include understanding the problem of tight coupling, using constructor injection to break that coupling, quickly updating code by changing data sources and adding caching features, and easily unit testing code. By the end of this course, you'll be comfortable with the concepts and patterns of dependency injection, and you'll be ready to explore further with dependency injection containers. Before beginning this course, you should be familiar with the basic features and syntax of the C# language including C# interfaces. And after completing this course, you should feel more comfortable diving into courses on dependency injection containers, advanced dependency injection concepts, and SOLID principles. I hope you'll join me on this journey to maintainable code with the Getting Started with Dependency Injection in .NET course, at Pluralsight.