/// <summary>
        /// Initializes a new instance of the <see cref="GatewayProviderTypedContextBase{T}"/> class.
        /// </summary>
        /// <param name="gatewayProviderService">
        /// The gateway provider service.
        /// </param>
        /// <param name="resolver">
        /// The resolver.
        /// </param>
        protected GatewayProviderTypedContextBase(IGatewayProviderService gatewayProviderService, IGatewayProviderResolver resolver)
        {
            Mandate.ParameterNotNull(gatewayProviderService, "gatewayProviderService");
            Mandate.ParameterNotNull(resolver, "resolver");

            _gatewayProviderService = gatewayProviderService;
            _resolver = resolver;
        }
Exemplo n.º 2
0
        public ShippingContext(IGatewayProviderService gatewayProviderService, IStoreSettingService storeSettingService,
                               IGatewayProviderResolver resolver)
            : base(gatewayProviderService, resolver)
        {
            Mandate.ParameterNotNull(storeSettingService, "storeSettingService");

            _storeSettingService = storeSettingService;
        }
Exemplo n.º 3
0
        internal GatewayContext(IServiceContext serviceContext, IGatewayProviderResolver resolver)
        {
            Mandate.ParameterNotNull(serviceContext, "serviceContext");
            Mandate.ParameterNotNull(resolver, "resolver");
            _gatewayProviderService = serviceContext.GatewayProviderService;
            _resolver = resolver;

            BuildGatewayContext(serviceContext.GatewayProviderService, serviceContext.StoreSettingService);
        }
Exemplo n.º 4
0
        internal GatewayContext(IServiceContext serviceContext, IGatewayProviderResolver resolver)
        {
            Mandate.ParameterNotNull(serviceContext, "serviceContext");
            Mandate.ParameterNotNull(resolver, "resolver");
            _gatewayProviderService = serviceContext.GatewayProviderService;
            _resolver = resolver;

            BuildGatewayContext(serviceContext.GatewayProviderService, serviceContext.StoreSettingService);
        }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PaymentContext"/> class.
 /// </summary>
 /// <param name="gatewayProviderService">
 /// The gateway provider service.
 /// </param>
 /// <param name="resolver">
 /// The resolver.
 /// </param>
 public PaymentContext(IGatewayProviderService gatewayProviderService, IGatewayProviderResolver resolver)
     : base(gatewayProviderService, resolver)
 {
 }
Exemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TaxationContext"/> class.
 /// </summary>
 /// <param name="gatewayProviderService">
 /// The gateway provider service.
 /// </param>
 /// <param name="storeSettingService">
 /// The <see cref="IStoreSettingService"/>
 /// </param>
 /// <param name="resolver">
 /// The resolver.
 /// </param>
 public TaxationContext(IGatewayProviderService gatewayProviderService, IStoreSettingService storeSettingService, IGatewayProviderResolver resolver)
     : base(gatewayProviderService, resolver)
 {
     Mandate.ParameterNotNull(storeSettingService, "storeSettingService");
     _storeSettingService      = storeSettingService;
     TaxApplicationInitialized = false;
 }
Exemplo n.º 7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="NotificationContext"/> class.
 /// </summary>
 /// <param name="gatewayProviderService">
 /// The gateway provider service.
 /// </param>
 /// <param name="resolver">
 /// The resolver.
 /// </param>
 public NotificationContext(IGatewayProviderService gatewayProviderService, IGatewayProviderResolver resolver)
     : base(gatewayProviderService, resolver)
 {
 }