示例#1
0
        public void Map_CaptureResponseDto_CorrectUnauthorizedAmount()
        {
            var src = new CaptureResponseDto {
                RemainingAuthorizedAmount = Factory.GetInteger()
            };

            var dest = _mapper.Map <CaptureResponse>(src);

            Assert.Equal(src.RemainingAuthorizedAmount, dest.UnauthorizedAmount);
        }
 public CaptureResponse(CaptureResponseDto dto)
 {
     Payment = new Uri(dto.Payment, UriKind.RelativeOrAbsolute);
     Capture = dto.Capture.Map();
 }