예제 #1
0
 public PaymentProcessor(IPaymentApiClient paymentApiClient, IPaymentRepository paymentRepository, IMapper mapper, ICardNumberMaskingService cardNumberMaskingService, ILogger <PaymentProcessor> logger)
 {
     _paymentApiClient         = paymentApiClient;
     _paymentRepository        = paymentRepository;
     _mapper                   = mapper;
     _cardNumberMaskingService = cardNumberMaskingService;
     _logger                   = logger;
 }
예제 #2
0
 public void Setup()
 {
     _mockedOptions = new CardMaskingRulesOptions
     {
         MaskingChar         = _maskingChar,
         MaskingStartIndex   = _maskingStartIndex,
         NumberOfMaskedChars = _numberOfMaskedChars
     };
     _config = new Mock <IOptions <CardMaskingRulesOptions> >();
     _config.Setup(c => c.Value).Returns(_mockedOptions);
     _cardNumberMaskingService = new CardNumberMaskingService(_config.Object);
 }