public async Task TestGetRoutesForBasicSearch_PostiveScenario()
        {
            List <RouteDTO> expectedRoutesForBasicSearch = await testCandidate.GetRoutesForBasicSearch(searchText, deliveryScenarioID);

            Assert.NotNull(expectedRoutesForBasicSearch);
            Assert.IsTrue(expectedRoutesForBasicSearch.Count == 2);
        }
        public async Task <IActionResult> GetRoutesForBasicSearch(string searchText)
        {
            if (string.IsNullOrEmpty(searchText))
            {
                throw new ArgumentNullException(nameof(searchText));
            }

            using (loggingHelper.RMTraceManager.StartTrace("WebService.GetRoutesForBasicSearch"))
            {
                string methodName = typeof(DeliveryRouteController) + "." + nameof(GetRoutesForBasicSearch);
                try
                {
                    loggingHelper.LogMethodEntry(methodName, LoggerTraceConstants.DeliveryRouteAPIPriority, LoggerTraceConstants.DeliveryRouteControllerMethodEntryEventId);

                    List <RouteDTO> deliveryRoutes = await deliveryRouteLogBusinessService.GetRoutesForBasicSearch(searchText, CurrentUserUnit);

                    loggingHelper.LogMethodExit(methodName, LoggerTraceConstants.DeliveryRouteAPIPriority, LoggerTraceConstants.DeliveryRouteControllerMethodExitEventId);
                    return(Ok(deliveryRoutes));
                }
                catch (AggregateException ae)
                {
                    foreach (var exception in ae.InnerExceptions)
                    {
                        loggingHelper.Log(exception, TraceEventType.Error);
                    }

                    var realExceptions = ae.Flatten().InnerException;
                    throw realExceptions;
                }
            }
        }