예제 #1
0
        public void TestTopDrop2GCell(int btsId, byte sectorId, short frequency,
                                      string cellName, int drops, int year, int month, int day, int hour, int cellId)
        {
            TopDrop2GCellExcel cellExcel = new TopDrop2GCellExcel
            {
                BtsId     = btsId,
                SectorId  = sectorId,
                Frequency = frequency,
                CellName  = cellName,
                Drops     = drops,
                StatDate  = new DateTime(year, month, day),
                StatHour  = hour
            };
            TopDrop2GCell cell = new TopDrop2GCell();

            cell.Import(cellExcel);
            Assert.AreEqual(cell.BtsId, btsId);
            Assert.AreEqual(cell.SectorId, sectorId);
            Assert.AreEqual(cell.Frequency, frequency);
            Assert.AreEqual(cell.CellId, cellId);
            Assert.AreEqual(cell.Drops, drops);
            Assert.AreEqual(cell.StatTime.Year, year);
            Assert.AreEqual(cell.StatTime.Month, month);
            Assert.AreEqual(cell.StatTime.Day, day);
            Assert.AreEqual(cell.StatTime.Hour, hour);
        }
예제 #2
0
 public void TestTopDrop2GCell(int btsId, byte sectorId, short frequency,
     string cellName, int drops, int year, int month, int day, int hour, int cellId)
 {
     TopDrop2GCellExcel cellExcel = new TopDrop2GCellExcel
     {
         BtsId = btsId,
         SectorId = sectorId,
         Frequency = frequency,
         CellName = cellName,
         Drops = drops,
         StatDate = new DateTime(year, month, day),
         StatHour = hour
     };
     TopDrop2GCell cell = new TopDrop2GCell();
     cell.Import(cellExcel);
     Assert.AreEqual(cell.BtsId, btsId);
     Assert.AreEqual(cell.SectorId, sectorId);
     Assert.AreEqual(cell.Frequency, frequency);
     Assert.AreEqual(cell.CellId, cellId);
     Assert.AreEqual(cell.Drops, drops);
     Assert.AreEqual(cell.StatTime.Year, year);
     Assert.AreEqual(cell.StatTime.Month, month);
     Assert.AreEqual(cell.StatTime.Day, day);
     Assert.AreEqual(cell.StatTime.Hour, hour);
 }