public void VentaDao_GetAllElements_TestMethod()
        {
            List <VentaDataModel> ventaDataModel;

            ventaDataModel = ventasDao.GetAllElements();
            Assert.IsNotNull(ventaDataModel);
        }
Example #2
0
        /// <summary>
        /// Obtiene todas las ventas para realizar el reporte
        /// </summary>
        /// <returns></returns>
        public static string ObtenerTodasLasVentas()
        {
            StringBuilder stringBuilder = new StringBuilder();

            foreach (VentaDataModel venta in ventasDao.GetAllElements())
            {
                stringBuilder.AppendLine("=====================================================================");
                stringBuilder.AppendLine(Mapper.Map <VentaDataModel, VentaViewModel>(venta).ToString());
            }
            return(stringBuilder.ToString());
        }