public void Can_Get_Street_List() { string lpNumber = "LP-02039"; var results = _landmarkService.GetLandmarkStreets(lpNumber); Assert.NotNull(results); }
public IActionResult GetStreets(string lpcNumber) { if (lpcNumber == null) { return(BadRequest()); } var results = _landmarkService.GetLandmarkStreets(lpcNumber.Trim()); var totalRecords = results.Count; HttpContext.Response.Headers.Add("Access-Control-Expose-Headers", "X-InlineCount"); HttpContext.Response.Headers.Add("X-InlineCount", totalRecords.ToString()); return(Ok(results)); }