public void TestaImpostoDaNotaFiscalCom20() { var nota = new NotaFiscal.NotaFiscal(); nota.Valor = 1000; var calc = new NotaFiscal.CalculaNotaFiscal(); var valor = calc.CalculaImposto(nota); Assert.AreEqual(20, valor, 0.0001); }
public void ExecutarAcao(NotaFiscal.NotaFiscal nf) { this.PersirtindoNoBanco(nf); }
private void PersirtindoNoBanco(NotaFiscal.NotaFiscal nf) { Console.WriteLine("Salvando nota fiscal na base de dados"); }
public void ExecutarAcao(NotaFiscal.NotaFiscal nf) { this.EnviarPorEmail(nf); }
private void EnviarPorEmail(NotaFiscal.NotaFiscal nf) { Console.WriteLine("Enviando nota por e-mail..."); }
public void ExecutarAcao(NotaFiscal.NotaFiscal nf) { this.ImprimirNotaFiscal(nf); }
private void ImprimirNotaFiscal(NotaFiscal.NotaFiscal nf) { Console.WriteLine("Imprimindo nota fiscal..."); }