/// <summary> /// Metodo que ejecuta el comando /// </summary> /// <param name="parametro">true</param> /// <returns>lista de cargos</returns> public override List <string> Ejecutar(bool parametro) { try { FabricaDAOSqlServer laFabrica = new FabricaDAOSqlServer(); IDaoClienteJuridico daoClienteJur = laFabrica.ObtenerDaoClienteJuridico(); return(daoClienteJur.consultarListaCargos()); } #region Catches catch (ExcepcionesTotem.ExceptionTotemConexionBD ex) { Logger.EscribirWarning(Convert.ToString(this.GetType()), ex.Message, System.Reflection.MethodBase.GetCurrentMethod().Name); throw ex; } catch (ExceptionTotem ex) { Logger.EscribirWarning(Convert.ToString(this.GetType()), ex.Message, System.Reflection.MethodBase.GetCurrentMethod().Name); throw ex; } #endregion }
public void pruebaConsultarListaDeCargos() { daoClienteJur = lafabricaDao.ObtenerDaoClienteJuridico(); Assert.IsNotEmpty(daoClienteJur.consultarListaCargos()); }