public void Test_GetPostalAddressDetails_PositiveScenario() { mockPostalAddressDataService.Setup(n => n.GetPostalAddressDetails(It.IsAny <Guid>())).Returns(new PostalAddressDataDTO() { ID = Guid.Empty }); var result = testCandidate.GetPostalAddressDetails(new Guid("019DBBBB-03FB-489C-8C8D-F1085E0D2A15")); Assert.IsNotNull(result); }
public IActionResult GetPostalAddressByGuid(Guid addressGuid) { using (loggingHelper.RMTraceManager.StartTrace("Controller.GetPostalAddressByGuid")) { string methodName = typeof(PostalAddressController) + "." + nameof(GetPostalAddressByGuid); loggingHelper.LogMethodEntry(methodName, priority, entryEventId); PostalAddressDTO postalAddressDto = businessService.GetPostalAddressDetails(addressGuid); loggingHelper.LogMethodExit(methodName, priority, exitEventId); return(Ok(postalAddressDto)); } }