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()); }
public PaymentController(IPaymentAppService paymentAppService, ITenantRegistrationAppService tenantRegistrationAppService, IPaymentCache paymentCache) { _paymentAppService = paymentAppService; _tenantRegistrationAppService = tenantRegistrationAppService; _paymentCache = paymentCache; }
public PaymentAppService( ISubscriptionPaymentRepository subscriptionPaymentRepository, EditionManager editionManager, IPaymentGatewayManagerFactory paymentGatewayManagerFactory, IPaymentCache paymentCache) { _subscriptionPaymentRepository = subscriptionPaymentRepository; _editionManager = editionManager; _paymentGatewayManagerFactory = paymentGatewayManagerFactory; _paymentCache = paymentCache; }
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; }
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; }
public MakePaymentCommandHandler(IBank bank, IPaymentCache cache) { this.bank = bank; this.cache = cache; }
public GetPaymentRequestHandler(IPaymentCache cache) { this.cache = cache; }