public void Test_GetCrossingNetworkLinks() { var result = testCandidate.GetCrossingNetworkLinks(coordinates, dbGeometry); Assert.IsNotNull(result); Assert.IsTrue(result.Count == 1); }
public IActionResult GetNetworkLink(string boundingBoxCoordinates, [FromBody] string accessLinkCoordinatesJson) { using (loggingHelper.RMTraceManager.StartTrace("Controller.GetNetworkLink")) { string methodName = typeof(NetworkManagerController) + "." + nameof(GetNetworkLink); loggingHelper.LogMethodEntry(methodName, priority, entryEventId); List <NetworkLinkDTO> result; result = networkManagerBusinessService.GetCrossingNetworkLinks(boundingBoxCoordinates, JsonConvert.DeserializeObject <DbGeometry>(accessLinkCoordinatesJson, new DbGeometryConverter())); loggingHelper.LogMethodExit(methodName, priority, exitEventId); return(Ok(result)); } }