public Producto(Guid id, string nombre, string precio, string cantidad) { CheckRule(new NotNullRule <ProductoNameValue>(nombre)); CheckRule(new NotNullRule <PrecioNumberValue>(precio)); CheckRule(new NotNullRule <CantidadNumberValue>(cantidad)); Id = id; Nombre = nombre; Precio = precio; Cantidad = cantidad; }
public void ActualizarCantidad(string cantidadPedidad) { Cantidad = cantidadPedidad; }