ASP.NET comes built-in with Dependency Injection, so you can easily inject lots of different things, either your own stuff or built-in from the framework.
With console applications, you have to do just a little bit more work yourself. Here's how to do it:
Discussion (0)