Beispiel #1
0
        public PaymentDetailTest()
        {
            var builder = new DbConnection();

            _context = new DemoDbContext((builder.InitConfiguration()).Options);
            _paymentDetailRepository = new PaymentDetailRepository(_context);
        }
Beispiel #2
0
 public PaymentDetailService(IPaymentLogRepository paymentLogRepository, IPaymentDetailRepository detailRepository, IExpensivePaymentGateway expensivePaymentGateway, ICheapPaymentGateway cheapPaymentGateway, IPremiumPaymentGateway premiumPaymentGateway)
 {
     this.paymentLogRepository    = paymentLogRepository;
     this.detailRepository        = detailRepository;
     this.expensivePaymentGateway = expensivePaymentGateway;
     this.cheapPaymentGateway     = cheapPaymentGateway;
     this.premiumPaymentGateway   = premiumPaymentGateway;
 }
 public PaymentController(
     IPaymentRepository _Payment
     , IUserRepository _user
     , ICustomerRepository customer
     , ITemplatePrintRepository _templatePrint
     , ICategoryRepository category
     , IPaymentDetailRepository paymentDetail
     )
 {
     paymentRepository       = _Payment;
     userRepository          = _user;
     customerRepository      = customer;
     templatePrintRepository = _templatePrint;
     categoryRepository      = category;
     paymentDetailRepository = paymentDetail;
 }
Beispiel #4
0
 public PaymentDetailService(IPaymentDetailRepository paymentDetailRepository)
 {
     _paymentDetailRepository = paymentDetailRepository;
 }
 public PaymentDetailsController(IPaymentDetailRepository paymentRepository)
 {
     _paymentRepository = paymentRepository;
 }
 public PaymentDetailController(DemoDbContext context, IMapper mapper)
 {
     _mapper            = mapper;
     _paymentRepository = new PaymentDetailRepository(context);
 }
 public PaymentDetailController(IPaymentDetailRepository PaymentDetailRepositoryy)
 {
     _paymentDetailRepository = PaymentDetailRepositoryy;
 }
        private readonly IPaymentDetailRepository _paymentDetailRepository; // вместо ccылки на контекст БД, ссылка на интерфейс репозитория


        //private readonly PaymentDetailContext _context;

        public PaymentDetailController(IPaymentDetailRepository paymentDetailRepository)  //DI
        {
            _paymentDetailRepository = paymentDetailRepository;
        }
 public PaymentDetailManager(IPaymentDetailRepository iPaymentDetailRepository)
     : base(iPaymentDetailRepository)
 {
     _iPaymentDetailRepository = iPaymentDetailRepository;
 }