static void Main(string[] args) { CuentaPorPagar cxp = new CuentaPorPagar { iIdCuentaPagar = 2154, cNaturaleza = "Naturaleza 1", dImporte = 527.00 }; IServicio a = new Servicio(); Console.WriteLine("Modificación 1"); IServicio b = new DecoradorHistorial(a); b.GuardarCuentaPagar(cxp); Console.WriteLine("================"); Console.WriteLine("Modificación 2"); IServicio d = new DecoradorEmail(a); d.GuardarCuentaPagar(cxp); Console.WriteLine("================"); Console.WriteLine("Modificación 3"); IServicio e = new DecoradorHistorial(a); IServicio f = new DecoradorEmail(e); f.GuardarCuentaPagar(cxp); Console.WriteLine("================"); Console.ReadLine(); }
public void GuardarCuentaPagar(CuentaPorPagar cp) { Console.WriteLine($"Se ha guardado la CXP con el identificador {cp.iIdCuentaPagar}"); }
public void GuardarCuentaPagar(CuentaPorPagar cp) { _service.GuardarCuentaPagar(cp); Console.WriteLine("Correo de notifación enviada."); }
public void GuardarCuentaPagar(CuentaPorPagar cp) { _service.GuardarCuentaPagar(cp); Console.WriteLine($"Se ha guardado el historial de la CXP con identificador {cp.iIdCuentaPagar}"); }