Beispiel #1
0
 public PaymentController(IRepository <PaymentRecord> repository, IOrchardServices orchardServices, IEnumerable <IPosService> posServices, IPaymentService paymentService)
 {
     _repository      = repository;
     _orchardServices = orchardServices;
     _paymentService  = paymentService;
     _posServices     = posServices;
     _posServiceEmpty = new PosServiceEmpty(orchardServices, repository, null);
     T      = NullLocalizer.Instance;
     Logger = NullLogger.Instance;
 }
        public PaymentController(
            IRepository <PaymentRecord> repository,
            IOrchardServices orchardServices,
            IEnumerable <IPosService> posServices,
            IPaymentService paymentService,
            IShapeFactory shapeFactory,
            IWorkContextAccessor workContextAccessor,
            IList <ICustomPosProvider> customPosProviders)
        {
            _repository          = repository;
            _orchardServices     = orchardServices;
            _paymentService      = paymentService;
            _posServices         = posServices;
            _shapeFactory        = shapeFactory;
            _workContextAccessor = workContextAccessor;
            _customPosProviders  = customPosProviders;

            _posServiceEmpty = new PosServiceEmpty(orchardServices, repository, null, _shapeFactory);
            T      = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }