public void Test_GetByGeneralName(string queryString, int count) { _btsRepository.MockThreeBtss(); _btsRepository.MockOperation(); var btsList = _service.GetByGeneralName(queryString); Assert.AreEqual(btsList.Count(), count); }
public IEnumerable <CdmaBtsView> Get(string name) { return(_service.GetByGeneralName(name)); }
public IHttpActionResult Get(string name) { var result = _service.GetByGeneralName(name); return(result == null ? (IHttpActionResult)BadRequest("No bts given the query conditions!") : Ok(result)); }