public void Test_GetPostcodes()
        {
            var result = testCandidate.GetPostcodes(new List <Guid> {
                Guid.NewGuid()
            });

            Assert.NotNull(result.Result);
        }
        public async Task <IActionResult> GetPostCodes([FromBody] List <Guid> postcodeGuids)
        {
            if (postcodeGuids == null || postcodeGuids.Count.Equals(0))
            {
                throw new ArgumentNullException(nameof(postcodeGuids));
            }

            string methodName = typeof(UnitManagerController) + "." + nameof(GetPostCodes);

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

                IEnumerable <PostcodeDTO> postCodes = await unitLocationBusinessService.GetPostcodes(postcodeGuids);

                loggingHelper.LogMethodEntry(methodName, LoggerTraceConstants.UnitManagerAPIPriority, LoggerTraceConstants.UnitManagerControllerMethodEntryEventId);
                return(Ok(postCodes));
            }
        }