public void TestConsultarGastoxFecha()
 {
     Gasto gasto = new Gasto();
     DateTime fechai = Convert.ToDateTime("01/01/2010");
     DateTime fechaf = Convert.ToDateTime("30/01/2010");
     IList<Gasto> gastos = new ReporteSQLServer().ConsultarGastoFecha(fechai, fechaf);
     Assert.AreEqual(gastos.Count, 1);
 }
        public IList<Empleado> Ejecutar()
        {
            ReporteSQLServer empleado = new ReporteSQLServer();

            IList<Empleado> Empleados;
            IList<Cargo> Cargos;

            if (_tipo=="Cedula")
            {
                Empleados= empleado.ConsultaEmpleadosCIEmp(_data);
            //            Cargos= empleado.ConsultaEmpleadosCICar(_data);
            }else
            {
                Empleados= empleado.ConsultaEmpleadosNombreEmp(_data);
            //            Cargos= empleado.ConsultaEmpleadosNombreCar(_data);
            }
            return Empleados;
        }
 public IList<string> Ejecutar()
 {
     ReporteSQLServer acceso = new ReporteSQLServer();
     _cargo = acceso.ObtenerCargo();
     return _cargo;
 }