Example #1
0
 public PaymentManager(CoreContext context, PaymentManagerConfiguration configuration) : this(
         new Stripe(),
         new PaymentRepository(context),
         new CreditCardRepository(context),
         new PaymentScheduleRepository(context),
         new PaymentChargeRepository(context),
         new DatesGenerator(),
         configuration
         )
 {
 }
Example #2
0
 public PaymentManager(
     IPaymentGateway paymentGateway,
     IPaymentRepository paymentRepository,
     IRepository <CreditCard> cardRepository,
     IPaymentScheduleRepository scheduleRepository,
     IPaymentChargeRepository chargeRepository,
     DatesGenerator datesGenerator,
     PaymentManagerConfiguration configuration
     )
 {
     PaymentGateway            = paymentGateway;
     PaymentRepository         = paymentRepository;
     CreditCardRepository      = cardRepository;
     PaymentScheduleRepository = scheduleRepository;
     PaymentChargeRepository   = chargeRepository;
     DatesGenerator            = datesGenerator;
     Configuration             = configuration;
 }