Example #1
0
        public void Test_GetByBtsId(int id)
        {
            _btsRepository.MockThreeBtss();
            _btsRepository.MockOperation();
            var bts = _service.GetByBtsId(id);

            Assert.AreEqual(bts.Name, "Bts-" + id);
        }
 public CdmaBtsView Get(int btsId)
 {
     return(_service.GetByBtsId(btsId));
 }
Example #3
0
        public IHttpActionResult Get(int btsId)
        {
            var result = _service.GetByBtsId(btsId);

            return(result == null ? (IHttpActionResult)BadRequest("No bts given the query conditions!") : Ok(result));
        }