public void TestEliminarImplemento() { try { Negocios.cSGGIIMPLEMENTONegocios Implemento = new Negocios.cSGGIIMPLEMENTONegocios(0, "CA", 2, "cosejo"); Implemento.ID_IMPLEMENTO = 2; Boolean result = Implemento.Eliminar(); } catch (Exception ex) { throw ex; } }
public void TestAgregarImplemento() { try { Negocios.cSGGIIMPLEMENTONegocios ImplementoNuevo = new Negocios.cSGGIIMPLEMENTONegocios(0, "CA", 2, "cosejo"); ImplementoNuevo.CAN_DISPONIBLE = 12; ImplementoNuevo.CAN_ENINVENTARIO = ImplementoNuevo.CAN_DISPONIBLE; ImplementoNuevo.DSC_IMPLEMENTO = "Nuevo"; ImplementoNuevo.FK_IDDEPORTE = 2; ImplementoNuevo.FK_IDTIPOIMPLEMENTO = 1; Boolean result = ImplementoNuevo.Insertar(); } catch (Exception ex) { throw ex; } }
public void TestModificarImplemento() { try { Negocios.cSGGIIMPLEMENTONegocios ImplementoNuevo = new Negocios.cSGGIIMPLEMENTONegocios(0, "CA", 2, "cosejo"); ImplementoNuevo.CAN_DISPONIBLE = 7; ImplementoNuevo.CAN_ENINVENTARIO = ImplementoNuevo.CAN_DISPONIBLE; ImplementoNuevo.DSC_IMPLEMENTO = "Falta"; ImplementoNuevo.ID_IMPLEMENTO = 1; ImplementoNuevo.FK_IDDEPORTE = 1; ImplementoNuevo.FK_IDTIPOIMPLEMENTO = 2; Boolean result = ImplementoNuevo.Actualizar(); } catch (Exception ex) { throw ex; } }