コード例 #1
0
 public TenantRegistrationAppService(
     IMultiTenancyConfig multiTenancyConfig,
     IRecaptchaValidator recaptchaValidator,
     EditionManager editionManager,
     IAppNotifier appNotifier,
     ILocalizationContext localizationContext,
     TenantManager tenantManager,
     UserManager userManager,
     ISubscriptionPaymentRepository subscriptionPaymentRepository,
     IPaymentGatewayManagerFactory paymentGatewayManagerFactory,
     IRepository <MileStone> MilestoneRepository,
     IRepository <TenantType> TenantTypeRepositary,
     IRepository <QuotationStatus> QuotationStatusRepository,
     IPaymentCache paymentCache)
 {
     _QuotationStatusRepository = QuotationStatusRepository;
     _multiTenancyConfig        = multiTenancyConfig;
     _recaptchaValidator        = recaptchaValidator;
     _editionManager            = editionManager;
     _appNotifier                   = appNotifier;
     _localizationContext           = localizationContext;
     _tenantManager                 = tenantManager;
     _subscriptionPaymentRepository = subscriptionPaymentRepository;
     _paymentGatewayManagerFactory  = paymentGatewayManagerFactory;
     _paymentCache                  = paymentCache;
     _userManager                   = userManager;
     _TenantTypeRepositary          = TenantTypeRepositary;
     _MilestoneRepository           = MilestoneRepository;
     AppUrlService                  = NullAppUrlService.Instance;
 }
 private void RegisterFakePaymentCache()
 {
     _fakePaymentCache = Substitute.For <IPaymentCache>();
     _fakePaymentCache.GetCacheItemOrNull(SubscriptionPaymentGatewayType.Paypal, samplePaymentId).Returns(new PaymentCacheItem(SubscriptionPaymentGatewayType.Paypal, PaymentPeriodType.Monthly, samplePaymentId));
     _fakePaymentCache.GetCacheItemOrNull(SubscriptionPaymentGatewayType.Paypal, samplePaymentId).Returns(new PaymentCacheItem(SubscriptionPaymentGatewayType.Paypal, PaymentPeriodType.Annual, samplePaymentId));
     LocalIocManager.IocContainer.Register(Component.For <IPaymentCache>().Instance(_fakePaymentCache).IsDefault());
 }
コード例 #3
0
 public PaymentController(IPaymentAppService paymentAppService,
                          ITenantRegistrationAppService tenantRegistrationAppService,
                          IPaymentCache paymentCache)
 {
     _paymentAppService            = paymentAppService;
     _tenantRegistrationAppService = tenantRegistrationAppService;
     _paymentCache = paymentCache;
 }
コード例 #4
0
 public PaymentAppService(
     ISubscriptionPaymentRepository subscriptionPaymentRepository,
     EditionManager editionManager,
     IPaymentGatewayManagerFactory paymentGatewayManagerFactory, IPaymentCache paymentCache)
 {
     _subscriptionPaymentRepository = subscriptionPaymentRepository;
     _editionManager = editionManager;
     _paymentGatewayManagerFactory = paymentGatewayManagerFactory;
     _paymentCache = paymentCache;
 }
コード例 #5
0
 public PaymentController(
     IPaymentAppService paymentAppService,
     ITenantRegistrationAppService tenantRegistrationAppService,
     IPaymentCache paymentCache,
     TenantManager tenantManager,
     EditionManager editionManager,
     ISubscriptionAppService subscriptionAppService)
 {
     _paymentAppService            = paymentAppService;
     _tenantRegistrationAppService = tenantRegistrationAppService;
     _paymentCache           = paymentCache;
     _tenantManager          = tenantManager;
     _editionManager         = editionManager;
     _subscriptionAppService = subscriptionAppService;
 }
コード例 #6
0
        public TenantRegistrationAppService(
            IMultiTenancyConfig multiTenancyConfig,
            IRecaptchaValidator recaptchaValidator,
            EditionManager editionManager,
            IAppNotifier appNotifier,
            ILocalizationContext localizationContext,
            TenantManager tenantManager,
            ISubscriptionPaymentRepository subscriptionPaymentRepository,
            IPaymentGatewayManagerFactory paymentGatewayManagerFactory,
            IPaymentCache paymentCache)
        {
            _multiTenancyConfig            = multiTenancyConfig;
            _recaptchaValidator            = recaptchaValidator;
            _editionManager                = editionManager;
            _appNotifier                   = appNotifier;
            _localizationContext           = localizationContext;
            _tenantManager                 = tenantManager;
            _subscriptionPaymentRepository = subscriptionPaymentRepository;
            _paymentGatewayManagerFactory  = paymentGatewayManagerFactory;
            _paymentCache                  = paymentCache;

            AppUrlService = NullAppUrlService.Instance;
        }
コード例 #7
0
 public MakePaymentCommandHandler(IBank bank, IPaymentCache cache)
 {
     this.bank  = bank;
     this.cache = cache;
 }
コード例 #8
0
 public GetPaymentRequestHandler(IPaymentCache cache)
 {
     this.cache = cache;
 }