Created
February 14, 2020 00:27
-
-
Save carloscds/44f9eab37a05fe52a856cbebbdee6aff 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; | |
using System.Data; | |
using Microsoft.Data.SqlClient; | |
namespace BasicDI | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var execCarro = new ExecutaServico(new ServicoCarro()); | |
execCarro.Executa(); | |
var execMoto = new ExecutaServico(new ServicoMoto()); | |
execMoto.Executa(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment