partial void Total_Compute(ref decimal result) { decimal subTotal = 0; foreach (var item in this.FacturasArticulos) { subTotal = subTotal + item.Monto; } var facturador = new Facturador(); result = facturador.ObtenerTotal(subTotal, Convert.ToDecimal(this.Recargo), Convert.ToDecimal(this.Descuento)); }
private void btnFacturar_Click(object sender, EventArgs e) { Facturador facturador = new Facturador(); facturador.Show(); }
private void emitirRemitoToolStripMenuItem_Click(object sender, EventArgs e) { Facturador facturador = new Facturador(); facturador.Show(); }
public void ObtenerTotalBasico() { var facturador = new Facturador(); Assert.AreEqual(14, facturador.ObtenerTotal(10, 6, 2), "El total esta mal calculado."); }