public IEnumerable <QciView> Get(string city, string district, DateTime begin, DateTime end, int topCount) { var results = _service.QueryTopCqiViews(city, district, begin, end, topCount); results.ForEach(x => { x.ENodebName = _eNodebQueryService.GetByENodebId(x.ENodebId)?.Name; }); return(results); }
public IEnumerable <FlowView> Get(string city, string district, DateTime begin, DateTime end, int topCount) { var results = _service.QueryTopDownSwitchViews(city, district, begin, end, topCount); results.ForEach(x => { var view = _eNodebQueryService.GetByENodebId(x.ENodebId); x.ENodebName = view?.Name; x.City = city; x.District = district; x.Town = view?.TownName; }); return(results); }
public IEnumerable <FlowView> Get(string city, string district, DateTime begin, DateTime end, int topCount) { var views = _service.QueryTopRank2Views(city, district, begin, end, topCount).ToList(); views.ForEach(view => { var eNodeb = _eNodebQueryServicee.GetByENodebId(view.ENodebId); view.ENodebName = eNodeb?.Name; view.City = city; view.District = district; view.Town = eNodeb?.TownName; }); return(views); }
public IEnumerable <FlowView> Get(DateTime begin, DateTime end, int topCount, string orderSelection) { var results = _service.QueryTopFlowViews(begin, end, topCount, orderSelection.GetEnumType <OrderTopFlowPolicy>()); results.ForEach(x => { var view = _eNodebQueryService.GetByENodebId(x.ENodebId); x.ENodebName = view?.Name; x.City = view?.CityName; x.District = view?.DistrictName; x.Town = view?.TownName; }); return(results); }
public void Test_GetByBtsId(int id) { _eNodebRepository.MockThreeENodebs(); _eNodebRepository.MockOperations(); var eNodeb = _service.GetByENodebId(id); Assert.AreEqual(eNodeb.Name, "ENodeb-" + id); }
public ENodebView Get(int eNodebId) { return(_service.GetByENodebId(eNodebId)); }
public IHttpActionResult Get(int eNodebId) { var result = _service.GetByENodebId(eNodebId); return(result == null ? (IHttpActionResult)BadRequest("No eNodebs given the query conditions!") : Ok(result)); }