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

            Assert.AreEqual(bts.Name, "Bts-" + id);
        }
예제 #2
0
 public CdmaBtsView Get(int btsId)
 {
     return(_service.GetByBtsId(btsId));
 }
예제 #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));
        }