コード例 #1
0
 public VaultProfileController(IComposerContext composerContext, IVaultProfileViewService vaultProfileViewService,
                               IImageViewService imageViewService)
 {
     ComposerContext         = composerContext ?? throw new ArgumentNullException(nameof(composerContext));
     VaultProfileViewService = vaultProfileViewService ?? throw new ArgumentNullException(nameof(vaultProfileViewService));
     ImageViewService        = imageViewService ?? throw new ArgumentNullException(nameof(imageViewService));
 }
コード例 #2
0
        public PaymentController(IComposerContext composerContext, IPaymentViewService paymentViewService, IImageViewService imageService,
                                 IRecurringScheduleUrlProvider recurringScheduleUrlProvider, IRecurringCartUrlProvider recurringCartUrlProvider)
        {
            if (composerContext == null)
            {
                throw new ArgumentNullException("composerContext");
            }
            if (imageService == null)
            {
                throw new ArgumentNullException("imageService");
            }
            if (paymentViewService == null)
            {
                throw new ArgumentNullException(nameof(paymentViewService));
            }
            if (recurringScheduleUrlProvider == null)
            {
                throw new ArgumentNullException("recurringScheduleUrlProvider");
            }
            if (recurringCartUrlProvider == null)
            {
                throw new ArgumentNullException("recurringCartUrlProvider");
            }

            ComposerContext              = composerContext;
            PaymentViewService           = paymentViewService;
            ImageService                 = imageService;
            RecurringScheduleUrlProvider = recurringScheduleUrlProvider;
            RecurringCartUrlProvider     = recurringCartUrlProvider;
        }
コード例 #3
0
        public VaultProfileController(IComposerContext composerContext, IVaultProfileViewService vaultProfileViewService,
                                      IImageViewService imageViewService)
        {
            if (composerContext == null)
            {
                throw new ArgumentNullException("composerContext");
            }
            if (vaultProfileViewService == null)
            {
                throw new ArgumentNullException("vaultProfileViewService");
            }
            if (imageViewService == null)
            {
                throw new ArgumentNullException("imageViewService");
            }

            ComposerContext         = composerContext;
            VaultProfileViewService = vaultProfileViewService;
            ImageViewService        = imageViewService;
        }
コード例 #4
0
 public PaymentController(IComposerContext composerContext, IPaymentViewService paymentViewService, IImageViewService imageService,
                          IRecurringScheduleUrlProvider recurringScheduleUrlProvider, IRecurringCartUrlProvider recurringCartUrlProvider)
 {
     ComposerContext              = composerContext ?? throw new ArgumentNullException(nameof(composerContext));
     PaymentViewService           = paymentViewService ?? throw new ArgumentNullException(nameof(paymentViewService));
     ImageService                 = imageService ?? throw new ArgumentNullException(nameof(imageService));
     RecurringScheduleUrlProvider = recurringScheduleUrlProvider ?? throw new ArgumentNullException(nameof(recurringScheduleUrlProvider));
     RecurringCartUrlProvider     = recurringCartUrlProvider ?? throw new ArgumentNullException(nameof(recurringCartUrlProvider));
 }