public List <NeighborCellMongo> Query()
        {
            var huaweiCell      = _huaweiCellRepository.GetRecent(_eNodebId, _sectorId);
            var localCellId     = huaweiCell?.LocalCellId ?? _sectorId;
            var huaweiNeighbors = _huaweiNeighborRepository.GetRecentList(_eNodebId, (byte)localCellId);
            var interNeighbors  = _interNeighborRepository.GetRecentList(_eNodebId, (byte)localCellId);
            var results         = Mapper.Map <List <EutranIntraFreqNCell>, List <NeighborCellMongo> >(huaweiNeighbors);

            results.AddRange(Mapper.Map <List <EutranInterFreqNCell>, IEnumerable <NeighborCellMongo> >(interNeighbors));
            results.ForEach(x =>
            {
                x.SectorId       = _sectorId;
                var neighborCell = _cellRepository.GetBySectorId(x.NeighborCellId, x.NeighborSectorId);
                if (neighborCell != null)
                {
                    x.NeighborPci = neighborCell.Pci;
                }
                var neighborENodeb = _eNodebRepository.FirstOrDefault(e => e.ENodebId == x.NeighborCellId);
                if (neighborENodeb != null)
                {
                    x.NeighborCellName = neighborENodeb.Name + "-" + x.NeighborSectorId;
                }
            });
            return(results);
        }
        public void Test_GetRecentBySectorId()
        {
            var results = _repository.GetRecentList(500814, 0);

            Assert.IsNotNull(results);
            Assert.AreEqual(results.Count, 33);
            Assert.AreEqual(results[0].iDate, "20160318");
        }