public Envio(DateTime fechaEnvio, Cliente emisor, Cliente receptor, Mercancia merc) { this.fechaEnvio = fechaEnvio; this.emisor = emisor; this.receptor = receptor; this.merc = merc; precioFinal = CalcularPrecioEnvio(); }
//Setters and Getters //public int IdEnvio { get => idEnvio; set => idEnvio = value; } //public DateTime FechaEnvio { get => fechaEnvio; set => fechaEnvio = value; } //public Cliente Emisor { get => emisor; set => emisor = value; } //public Cliente Receptor { get => receptor; set => receptor = value; } //public Mercancia Merc { get => merc; set => merc = value; } //Constructor public Envio(int idEnvio, DateTime fechaEnvio, Cliente emisor, Cliente receptor, Mercancia merc, double precioFinal) { this.idEnvio = idEnvio; this.fechaEnvio = fechaEnvio; this.emisor = emisor; this.receptor = receptor; this.merc = merc; this.precioFinal = precioFinal; }