예제 #1
0
        public async Task Test_CheckForDuplicateAddressWithDeliveryPoints_PositiveScenario()
        {
            bool result = await testCandidate.CheckForDuplicateAddressWithDeliveryPoints(publicPostalAddressDTO);

            Assert.IsNotNull(result);
            Assert.IsTrue(result);
        }
예제 #2
0
        public async Task <IActionResult> CheckForDuplicateAddressWithDeliveryPoints([FromBody] PostalAddressDTO objPostalAddress)
        {
            using (loggingHelper.RMTraceManager.StartTrace("Controller.CheckForDuplicateAddressWithDeliveryPoints"))
            {
                string methodName = typeof(PostalAddressController) + "." + nameof(CheckForDuplicateAddressWithDeliveryPoints);
                loggingHelper.LogMethodEntry(methodName, priority, entryEventId);

                bool isDuplicate = await businessService.CheckForDuplicateAddressWithDeliveryPoints(objPostalAddress);

                loggingHelper.LogMethodExit(methodName, priority, exitEventId);

                return(Ok(isDuplicate));
            }
        }