public bool CheckStationGrp(string dataPoint, string currentGrpLocation) { bool bConfigured = true; if (currentGrpLocation.ToUpper() != DAOHelper.OCC_LOCATIONNAME) { if (dataPoint.Contains(".Value")) { dataPoint = dataPoint.Remove(dataPoint.Length - 6); } EntityDAO entityDAO = new EntityDAO(); double locationkey = entityDAO.GetLocationKeyByEtyName(dataPoint); string locationName = entityDAO.GetLocationNameFromKey(locationkey); if (locationName.ToUpper() != currentGrpLocation.ToUpper()) { bConfigured = false; } } return(bConfigured); }
public void TestGetLocationNameFromKey() { entityDAO.GetLocationNameFromKey(0); }