public void Test_GetNetworkLink() { var result = testCandidate.GetNetworkLink(Guid.NewGuid()); Assert.IsNotNull(result); Assert.AreEqual(result.LinkGeometry, lineGeometry); Assert.That(result.Id, Is.AssignableFrom(typeof(Guid))); }
public IActionResult GetNetworkLink(Guid networkLinkID) { using (loggingHelper.RMTraceManager.StartTrace("Controller.GetNetworkLink")) { string methodName = typeof(NetworkManagerController) + "." + nameof(GetNetworkLink); loggingHelper.LogMethodEntry(methodName, priority, entryEventId); NetworkLinkDTO result; result = networkManagerBusinessService.GetNetworkLink(networkLinkID); loggingHelper.LogMethodExit(methodName, priority, exitEventId); return(Ok(result)); } }