public UnitOfWork(IPaymentDbContext iPaymentDbContext, IPaymentRepository iPaymentRepository, ICheapPaymentGateway cheapPaymentGateways, IExpensivePaymentGateway expensivePaymentGateways, IPremiumPaymentGateway premiumPaymentGateways) { _context = iPaymentDbContext; Payments = iPaymentRepository; CheapPaymentGateways = cheapPaymentGateways; ExpensivePaymentGateways = expensivePaymentGateways; PremiumPaymentGateways = premiumPaymentGateways; }
public PaymentsController( IPaymentDbContext paymentDb, IBankRegistry banksRegistry, IEncryptionService encryptionService) { _paymentDb = paymentDb; _banksRegistry = banksRegistry; _encryptionService = encryptionService; }
public MerchantsController( IPaymentDbContext paymentDb, IConfig config, IEncryptionService encryptionService) { _paymentDb = paymentDb; _config = config; _encryptionService = encryptionService; }
public PaymentRepository(IPaymentDbContext context) : base(context) { }
protected BaseRepository(IPaymentDbContext context) { Db = context; }
/// <summary> /// Ctor /// </summary> /// <param name="context">Object context</param> public EfRepository(IPaymentDbContext context) { _context = context; }
public UnitOfWork(IPaymentDbContext paymentDbContext) { _paymentDbContext = paymentDbContext; }