public double Calcula(ITabelaDesconto tabela, IServicoEntrega entrega) { //TabelaDePrecoPadrao tabela = new TabelaDePrecoPadrao(); //Frete correios = new Frete(); double desconto = tabela.DescontoPara(3000); double frete = entrega.Para("sao paulo"); return(Valor * (1 - desconto) + frete); }
public CalculadoraDePrecos(IServicoEntrega servicoEntrega, ITabelaDePreco tabela) { _servicoEntrega = servicoEntrega; _tabela = tabela; }
public CalculadoraDePrecos(ITabelaDePreco tabela, IServicoEntrega entrega) { this.tabela = tabela; this.entrega = entrega; }
public CalculadoraDePreco(ITabelaPreco tabelaPreco, IServicoEntrega servicoEntrega) { this.tabelaPreco = tabelaPreco; this.servicoEntrega = servicoEntrega; }
public CalculadoraDePrecos(IServicoEntrega entrega, ITabelasDeDescontos desconto) { this.entrega = entrega; this.tabela = desconto; }
public ServicoPedido(IServicoEntrega servicoEntrega, ITaxService taxService) { _servicoEntrega = servicoEntrega; _taxService = taxService; }