コード例 #1
0
        public void Test_GetByGeneralName(string queryString, int count)
        {
            _btsRepository.MockThreeBtss();
            _btsRepository.MockOperation();
            var btsList = _service.GetByGeneralName(queryString);

            Assert.AreEqual(btsList.Count(), count);
        }
コード例 #2
0
 public IEnumerable <CdmaBtsView> Get(string name)
 {
     return(_service.GetByGeneralName(name));
 }
コード例 #3
0
        public IHttpActionResult Get(string name)
        {
            var result = _service.GetByGeneralName(name);

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