public void GetElementsByUNIDTest() { HistorialDataMapper target = new HistorialDataMapper(); // TODO: Inicializar en un valor adecuado long unid = 20130114105249989; // TODO: Inicializar en un valor adecuado string s = "BANCO"; // TODO: Inicializar en un valor adecuado List <MASTER_INVENTARIOS> expected = null; // TODO: Inicializar en un valor adecuado List <MASTER_INVENTARIOS> actual; actual = target.GetElementsByUNID(unid, s); Assert.AreEqual(expected, actual); Assert.Inconclusive("Compruebe la exactitud de este método de prueba."); }
public string downloadMasterInventario(long?lastModifiedDate) { string respuesta = null; if (lastModifiedDate != null) { HistorialDataMapper dataMapper = new HistorialDataMapper(); respuesta = dataMapper.GetJsonMasterInventarios(lastModifiedDate); if (String.IsNullOrEmpty(respuesta)) { respuesta = null; } } return(respuesta); }
public ObservableCollection <HistorialModel> GetHistorial(string s) { HistorialDataMapper hd = new HistorialDataMapper(); List <MASTER_INVENTARIOS> l = new List <MASTER_INVENTARIOS>(); ObservableCollection <HistorialModel> res = new ObservableCollection <HistorialModel>(); l = hd.GetElementsByUNID(unid, s); foreach (MASTER_INVENTARIOS mi in l) { HistorialModel aux = new HistorialModel(); aux.Fecha = mi.FECHA; aux.Roles = mi.ROLES; aux.Tipo = mi.MODIFICACIONES; aux.User = mi.USUARIO2; res.Add(aux); } return(res); }