Created
February 14, 2020 00:47
-
-
Save carloscds/3f2a1f1fa2b1e2818d19341559628653 to your computer and use it in GitHub Desktop.
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 System; | |
namespace ExemploNInject | |
{ | |
public class ExecutaDI | |
{ | |
private IServico _servico; | |
public ExecutaDI(IServico servico) | |
{ | |
_servico = servico; | |
} | |
public void Executa() | |
{ | |
_servico.Executa(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment