Esempio n. 1
0
        public void Test_GetOSRoadLink()
        {
            var actualResult = testCandidate.GetOSRoadLink("123");

            Assert.IsNotNull(actualResult);
            Assert.AreEqual(actualResult.Result, "1");
        }
        /// <summary>
        /// This method is used to fetch data for Ordinance survey Road Link.
        /// </summary>
        /// <param name="toid">toid unique identifier for OSRoadLink</param>
        /// <returns>The Route Hierarchy as string</returns>
        public async Task <string> GetOSRoadLink(string toid)
        {
            using (loggingHelper.RMTraceManager.StartTrace("Business.GetOSRoadLink"))
            {
                string methodName = typeof(NetworkManagerBusinessService) + "." + nameof(GetOSRoadLink);
                loggingHelper.LogMethodEntry(methodName, priority, entryEventId);

                var getOSRoadLink = await osRoadLinkDataService.GetOSRoadLink(toid);

                loggingHelper.LogMethodExit(methodName, priority, exitEventId);

                return(getOSRoadLink);
            }
        }