Created
February 1, 2020 07:26
-
-
Save PradeepLoganathan/eb8f668f80bcf74b6d50f85591a8eb7a to your computer and use it in GitHub Desktop.
constructor injection
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Injector.Abstractions; | |
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
namespace Injector | |
{ | |
class ConsoleApplication | |
{ | |
private readonly ICustomer _customer; | |
public ConsoleApplication(ICustomer customer) | |
{ | |
_customer = customer; | |
} | |
public void Run() | |
{ | |
_customer.CreateCustomer(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment