public async Task <IActionResult> SearchAddressdetails(string searchText)
        {
            try
            {
                string methodName = typeof(UnitManagerController) + "." + nameof(SearchAddressdetails);
                using (loggingHelper.RMTraceManager.StartTrace("Controller.SearchAddressdetails"))
                {
                    loggingHelper.LogMethodEntry(methodName, LoggerTraceConstants.UnitManagerAPIPriority, LoggerTraceConstants.UnitManagerControllerMethodEntryEventId);

                    List <string> postalAddressList = await unitLocationBusinessService.GetPostalAddressSearchDetails(searchText, CurrentUserUnit);

                    loggingHelper.LogMethodExit(methodName, LoggerTraceConstants.UnitManagerAPIPriority, LoggerTraceConstants.UnitManagerControllerMethodExitEventId);

                    return(Ok(postalAddressList));
                }
            }
            catch (AggregateException ae)
            {
                foreach (var exception in ae.InnerExceptions)
                {
                    loggingHelper.Log(exception, System.Diagnostics.TraceEventType.Error);
                }

                var realExceptions = ae.Flatten().InnerException;
                throw realExceptions;
            }
        }
        public void Test_GetPostalAddressSearchDetails()
        {
            var result = testCandidate.GetPostalAddressSearchDetails("12,MG", Guid.NewGuid());

            Assert.NotNull(result.Result);
            Assert.AreEqual(result.Result.Count, 1);
            Assert.AreEqual(result.Result[0], "123");
        }