public StripePaymentServiceTests() { _transactionRepository = Substitute.For <ITransactionRepository>(); _userRepository = Substitute.For <IUserRepository>(); _appleIapService = Substitute.For <IAppleIapService>(); _globalSettings = new GlobalSettings(); _logger = Substitute.For <ILogger <StripePaymentService> >(); _taxRateRepository = Substitute.For <ITaxRateRepository>(); _stripeAdapter = Substitute.For <IStripeAdapter>(); _braintreeGateway = Substitute.For <IBraintreeGateway>(); _sut = new StripePaymentService( _transactionRepository, _userRepository, _appleIapService, _logger, _taxRateRepository, _stripeAdapter, _braintreeGateway ); }
public ToolsController( GlobalSettings globalSettings, IOrganizationRepository organizationRepository, IOrganizationService organizationService, IUserService userService, ITransactionRepository transactionRepository, IInstallationRepository installationRepository, IOrganizationUserRepository organizationUserRepository, ITaxRateRepository taxRateRepository, IPaymentService paymentService, IStripeAdapter stripeAdapter) { _globalSettings = globalSettings; _organizationRepository = organizationRepository; _organizationService = organizationService; _userService = userService; _transactionRepository = transactionRepository; _installationRepository = installationRepository; _organizationUserRepository = organizationUserRepository; _taxRateRepository = taxRateRepository; _paymentService = paymentService; _stripeAdapter = stripeAdapter; }
public StripeSyncService(IStripeAdapter stripeAdapter) { _stripeAdapter = stripeAdapter; }