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);
        }
Exemple #2
0
 public void ExecutarAcao(NotaFiscal.NotaFiscal nf)
 {
     this.PersirtindoNoBanco(nf);
 }
Exemple #3
0
 private void PersirtindoNoBanco(NotaFiscal.NotaFiscal nf)
 {
     Console.WriteLine("Salvando nota fiscal na base de dados");
 }
Exemple #4
0
 public void ExecutarAcao(NotaFiscal.NotaFiscal nf)
 {
     this.EnviarPorEmail(nf);
 }
Exemple #5
0
 private void EnviarPorEmail(NotaFiscal.NotaFiscal nf)
 {
     Console.WriteLine("Enviando nota por e-mail...");
 }
Exemple #6
0
 public void ExecutarAcao(NotaFiscal.NotaFiscal nf)
 {
     this.ImprimirNotaFiscal(nf);
 }
Exemple #7
0
 private void ImprimirNotaFiscal(NotaFiscal.NotaFiscal nf)
 {
     Console.WriteLine("Imprimindo nota fiscal...");
 }