public void GetShortestRoute_ProvideAllParams_ConfirmReturn(string src, string dst) { string result; result = BLL.GetShortestRoute(src, dst); Assert.IsType <string>(result); Assert.True(result == "Success"); }
public ActionResult <string> Get( [FromQuery] string src, [FromQuery] string dst) { try { string nullCheck = NullCheck(src, dst); if (nullCheck != null) { return(nullCheck); } return(_SP_Route_BLL.GetShortestRoute(src, dst)); } catch (Exception error) { return($"{error.Source} - {error.Message} - {error.StackTrace}"); } }