public DaStripePaymentMethod( DaPaymentMethodManager paymentMethodManager, DaTenantManager tenantManager, DaAddressProfileManager addressProfileManager, DaSubscriptionManager subscriptionManager, DaCountryManager countryManager) : base(paymentMethodManager, tenantManager, addressProfileManager, subscriptionManager, countryManager) { }
protected DaAuthorizationFacade GetAuthorizationFacade() { var userManager = new DaUserManager(new DaUserRepository(DaSecurityFacadeTestSuite.IdentityDbContext)); var tenantManager = new DaTenantManager(new DaTenantRepository(DaSecurityFacadeTestSuite.EnterpriseSecurityDbContext)); var appManager = new DaAppManager(new DaAppRepository(DaSecurityFacadeTestSuite.EnterpriseSecurityDbContext)); var featureManager = new DaFeatureManager(new DaFeatureRepository(DaSecurityFacadeTestSuite.EnterpriseSecurityDbContext)); var userAgreementManager = new DaUserAgreementManager(new DaUserAgreementRepository(DaSecurityFacadeTestSuite.EnterpriseSecurityDbContext)); var subscriptionPlanManager = new DaSubscriptionPlanManager(new DaSubscriptionPlanRepository(DaSecurityFacadeTestSuite.EnterpriseSecurityDbContext)); var subscriptionManager = new DaSubscriptionManager(new DaSubscriptionRepository(DaSecurityFacadeTestSuite.EnterpriseSecurityDbContext)); var currencyManager = new DaCurrencyManager(new DaCurrencyRepository(DaSecurityFacadeTestSuite.ListsDbContext)); var countryManager = new DaCountryManager(new DaCountryRepository(DaSecurityFacadeTestSuite.ListsDbContext)); var timeZoneManager = new DaTimeZoneManager(new DaTimeZoneRepository(DaSecurityFacadeTestSuite.ListsDbContext)); var systemLanguageManager = new DaSystemLanguageManager(new DaSystemLanguageRepository(DaSecurityFacadeTestSuite.ListsDbContext)); return(new DaAuthorizationFacade(userManager, tenantManager, appManager, featureManager, userAgreementManager, subscriptionPlanManager, subscriptionManager, currencyManager, countryManager, timeZoneManager, systemLanguageManager)); }
public DaStripePaymentMethod( DaPaymentMethodManager <TKey, TPaymentMethod> paymentMethodManager, DaTenantManager <TKey, TNullableKey, TTenant> tenantManager, DaAddressProfileManager <TKey, TNullableKey, TAddressProfile> addressProfileManager, DaSubscriptionManager <TKey, TNullableKey, TSubscription> subscriptionManager, DaCountryManager <TKey, TNullableKey, TCountry, TCountryRegion> countryManager) { if (paymentMethodManager == null) { throw new ArgumentNullException(nameof(paymentMethodManager)); } if (addressProfileManager == null) { throw new ArgumentNullException(nameof(addressProfileManager)); } if (tenantManager == null) { throw new ArgumentNullException(nameof(tenantManager)); } if (subscriptionManager == null) { throw new ArgumentNullException(nameof(subscriptionManager)); } if (countryManager == null) { throw new ArgumentNullException(nameof(countryManager)); } _paymentMethodManager = paymentMethodManager; _tenantManager = tenantManager; _addressProfileManager = addressProfileManager; _subscriptionManager = subscriptionManager; _countryManager = countryManager; StripeConfiguration.ApiKey = ConfigurationManager.AppSettings["Stripe:TestSecretKey"]; }