public void GetJsonFacturaVentaTest() { FacturaVentaDataMapper target = new FacturaVentaDataMapper(); // TODO: Inicializar en un valor adecuado string expected = string.Empty; // TODO: Inicializar en un valor adecuado string actual; actual = target.GetJsonFacturaVenta(); Assert.AreEqual(expected, actual); Assert.Inconclusive("Compruebe la exactitud de este método de prueba."); }
public FacturaVentaModel(IDataMapper dataMapper) { if ((dataMapper as FacturaVentaDataMapper) != null) { this._dataMapper = new FacturaVentaDataMapper(); } this._unidFacturaVenta = UNID.getNewUNID(); this._iva = 0; this._porIva = 0; this._impFactura = 0; this._total = 0; }
public string downloadFacturaVenta(long?lastModifiedDate) { string respuesta = null; if (lastModifiedDate != null) { FacturaVentaDataMapper dataMapper = new FacturaVentaDataMapper(); respuesta = dataMapper.GetJsonFacturaVenta(lastModifiedDate); if (String.IsNullOrEmpty(respuesta)) { respuesta = null; } } return(respuesta); }
public SalidaVentaViewModel(MovimientoGridSalidaVentaViewModel salida) { try { IDataMapper dataMapper = new SolicitanteDataMapper(); IDataMapper dataMapper2 = new AlmacenDataMapper(); IDataMapper dataMapper3 = new ProveedorDataMapper(); IDataMapper dataMapper4 = new ClienteDataMapper(); IDataMapper dataMapper5 = new ServicioDataMapper(); IDataMapper dataMapper6 = new TipoPedimentoDataMapper(); IDataMapper dataMapper7 = new TransporteDataMapper(); IDataMapper dataMapper8 = new MonedaDataMapper(); IDataMapper dataMapper9 = new FacturaVentaDataMapper(); IDataMapper dataMapper10 = new TecnicoDataMapper(); IDataMapper datamapper11 = new EmpresaDataMapper(); this._catalogEmpresaModel = new CatalogEmpresaModel(datamapper11); this._catalogSolicitanteModel = new CatalogSolicitanteModel(dataMapper); this._movimientoModel = new MovimientoSalidasModel(new MovimientoDataMapper(), salida.ActualUser); TIPO_MOVIMIENTO mov = new TIPO_MOVIMIENTO(); mov.UNID_TIPO_MOVIMIENTO = 8; this._movimientoModel.TipoMovimiento = mov; this._movimientoSalida = salida; this._movimientoModel.PropertyChanged += OnPropertyChanged2; this._itemModel = new CatalogItemModel(new ItemDataMapper()); this._catalogAlmacenDestinoModel = new CatalogAlmacenModel(dataMapper2); this._catalogAlmacenProcedenciaModel = new CatalogAlmacenModel(dataMapper2); this._catalogProveedorDestinoModel = new CatalogProveedorModel(dataMapper3); this._catalogClienteDestinoModel = new CatalogClienteModel(dataMapper4); this._catalogServicioModel = new CatalogServicioModel(dataMapper5); this._catalogTipoPedimentoModel = new CatalogTipoPedimentoModel(dataMapper6); this._catalogTransporteModel = new CatalogTransporteModel(dataMapper7); this._catalogClienteModel = new CatalogClienteModel(dataMapper4); this._catalogMonedaModel = new CatalogMonedaModel(dataMapper8); this._facturaVentaModel = new FacturaVentaModel(dataMapper9); this._catalogTecnicoModel = new CatalogTecnicoModel(dataMapper10); //Asignaciones especiales para los combos this._movimientoModel.Empresa = _catalogEmpresaModel.Empresa[0]; this._movimientoModel.Solicitante = _catalogSolicitanteModel.Solicitante[0]; //this._movimientoModel.Servicio = _catalogServicioModel.Servicio[0]; //this._movimientoModel.Cliente = _catalogClienteModel.Cliente[0]; this._movimientoModel.AlmacenProcedencia = _catalogAlmacenProcedenciaModel.Almacen[0]; this._movimientoModel.Tecnico = _movimientoModel.Tecnicos[0]; this._movimientoModel.AlmacenDestino = _catalogAlmacenDestinoModel.Almacen[0]; this._movimientoModel.ClienteDestino = _catalogClienteDestinoModel.Cliente[0]; this._movimientoModel.ProveedorDestino = _catalogProveedorDestinoModel.Proveedor[0]; this._movimientoModel.Transporte = _catalogTransporteModel.Transporte[0]; this._facturaVentaModel.Moneda = _catalogMonedaModel.Moneda[0]; this._IsEnabled = true; } catch (ArgumentException a) { ; } catch (Exception ex) { throw ex; } }