public async Task Test_FetchDeliveryUnitForUser()
        {
            string currentUserUnitType = "Delivery Office";
            var    result = await testCandidate.GetUnitsByUser(userID, currentUserUnitType);

            Assert.IsNotNull(result);
            Assert.AreEqual(result.Select(x => x.Area).First(), "Polygon");
            Assert.AreEqual(result.Select(x => x.UnitName).First(), "UnitOne");
        }
        public async Task <IEnumerable <UnitLocationDTO> > GetUnitLocations()
        {
            string methodName = typeof(UnitManagerController) + "." + nameof(GetUnitLocations);

            using (loggingHelper.RMTraceManager.StartTrace("WebService.GetUnitLocations"))
            {
                loggingHelper.LogMethodEntry(methodName, LoggerTraceConstants.UnitManagerAPIPriority, LoggerTraceConstants.UnitManagerControllerMethodEntryEventId);

                var unitLocations = await unitLocationBusinessService.GetUnitsByUser(UserId, CurrentUserUnitType);

                loggingHelper.LogMethodEntry(methodName, LoggerTraceConstants.UnitManagerAPIPriority, LoggerTraceConstants.UnitManagerControllerMethodExitEventId);
                return(unitLocations);
            }
        }