Exemplo n.º 1
0
        public void Test_HuaweiFile_Merge()
        {
            var testDirectory     = AppDomain.CurrentDomain.BaseDirectory;
            var csvFilesDirectory = Path.Combine(testDirectory, "CsvFiles");
            var path = Path.Combine(csvFilesDirectory, "NeighborCellHw.csv");

            var reader = new StreamReader(path);
            var infos  = NeighborCellHwCsv.ReadNeighborCellHwCsvs(reader);

            Assert.AreEqual(infos.Count, 7);
        }
Exemplo n.º 2
0
        public void UploadHwNeighbors(StreamReader reader)
        {
            var groupInfos = NeighborCellHwCsv.ReadNeighborCellHwCsvs(reader);

            foreach (var info in groupInfos)
            {
                var cell = NearestPciCell.ConstructCell(info, _cellRepository);
                if (cell.Pci >= 0)
                {
                    NearestCells.Push(cell);
                }
            }
        }