public JsonResult QueryCoverageInterferenceDistribution(
            int cellId, byte sectorId, short frequency, DateTime end)
        {
            QueryTopDrop2GService service = new QueryTopDrop2GService(dailyStatRepository,
                cellId, sectorId, frequency, end);

            List<CoverageInterferenceDistribution> result = service.GenerateCoverageInterferenceDistribution();
            return Json(result, JsonRequestBehavior.AllowGet);
        }
        public JsonResult QueryAlarmHourDistribution(int cellId, byte sectorId, short frequency, DateTime end)
        {
            QueryTopDrop2GService service = new QueryTopDrop2GService(dailyStatRepository,
               cellId, sectorId, frequency, end);

            AlarmHourDistribution distribution = service.GenerateAlarmHourDistribution();
            return Json(distribution.AlarmRecords.Select(x => new
            {
                Type = x.Key,
                Data = x.Value
            }), JsonRequestBehavior.AllowGet);
        }
예제 #3
0
 public void SetUp()
 {
     statList = new List<TopDrop2GCellDaily>();
     _service = new QueryTopDrop2GService(mockRepository.Object,
         1, 2, 3, DateTime.Today);
 }