コード例 #1
0
 public override PaymentInitializeResult Initialize()
 {
     IPaymentInitializer initializer = new GenerateOrderNumber(
             new InitializePayment(
             new RedirectUser(), _paymentManager, _parameterReader, _cartActions, _additionalValuesFormatter), _orderNumberGenerator);
     return initializer.Initialize(this, null, null, null);
 }
コード例 #2
0
 public override PaymentInitializeResult Initialize()
 {
     IPaymentInitializer initializer = new GenerateOrderNumber(
         new GetConsumerLegalAddress(
             new InitializePayment(
                 new PurchaseInvoiceSale(_paymentManager, _paymentActions), _paymentManager, _parameterReader, _cartActions, _additionalValuesFormatter),
                 _verificationManager, _paymentActions), _orderNumberGenerator);
     return initializer.Initialize(this, null, null, null);
 }
 public void Setup()
 {
     Mock<IPaymentInitializer> mockInitializer = new Mock<IPaymentInitializer>();
     _orderNumberGeneratorMock = new Mock<IOrderNumberGenerator>();
     _orderNumberGenerator = new GenerateOrderNumber(mockInitializer.Object, _orderNumberGeneratorMock.Object);
 }