public async Task PagosBusiness_EliminarPagoPendientePorPagar_ShouldDelete() { PagosBusiness pagosBusiness = new PagosBusiness(); HistorialPagosPersonas historial = new HistorialPagosPersonas { Consecutivo = 26, CodigoPersona = 3 }; WrapperSimpleTypesDTO wrapper = await pagosBusiness.EliminarPagoPendientePorPagar(historial); Assert.IsNotNull(wrapper); }
public async Task <IHttpActionResult> EliminarPagoPendientePorPagar(HistorialPagosPersonas historialPagoParaEliminar) { if (historialPagoParaEliminar == null || historialPagoParaEliminar.CodigoPersona <= 0 || historialPagoParaEliminar.Consecutivo <= 0) { return(BadRequest("historialPagoParEliminar vacio y/o invalido!.")); } try { WrapperSimpleTypesDTO wrapperEliminarPagoPendientePorPagar = await _pagosBusiness.EliminarPagoPendientePorPagar(historialPagoParaEliminar); return(Ok(wrapperEliminarPagoPendientePorPagar)); } catch (Exception ex) { return(InternalServerError(ex)); } }