Пример #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GatewayProviderService"/> class.
 /// </summary>
 /// <param name="logger">
 /// The logger.
 /// </param>
 /// <param name="repositoryFactory">
 /// The repository factory.
 /// </param>
 /// <param name="shipMethodService">
 /// The ship method service.
 /// </param>
 /// <param name="shipRateTierService">
 /// The ship rate tier service.
 /// </param>
 /// <param name="shipCountryService">
 /// The ship country service.
 /// </param>
 /// <param name="invoiceService">
 /// The invoice service.
 /// </param>
 /// <param name="orderService">
 /// The order service.
 /// </param>
 /// <param name="taxMethodService">
 /// The tax method service.
 /// </param>
 /// <param name="paymentService">
 /// The payment service.
 /// </param>
 /// <param name="paymentMethodService">
 /// The payment method service.
 /// </param>
 /// <param name="notificationMethodService">
 /// The notification method service.
 /// </param>
 /// <param name="notificationMessageService">
 /// The notification message service.
 /// </param>
 /// <param name="warehouseService">
 /// The warehouse service.
 /// </param>
 internal GatewayProviderService(
     ILogger logger,
     RepositoryFactory repositoryFactory,
     IShipMethodService shipMethodService,
     IShipRateTierService shipRateTierService,
     IShipCountryService shipCountryService,
     IInvoiceService invoiceService,
     IOrderService orderService,
     ITaxMethodService taxMethodService,
     IPaymentService paymentService,
     IPaymentMethodService paymentMethodService,
     INotificationMethodService notificationMethodService,
     INotificationMessageService notificationMessageService,
     IWarehouseService warehouseService)
     : this(
         new PetaPocoUnitOfWorkProvider(logger),
         repositoryFactory,
         logger,
         shipMethodService,
         shipRateTierService,
         shipCountryService,
         invoiceService,
         orderService,
         taxMethodService,
         paymentService,
         paymentMethodService,
         notificationMethodService,
         notificationMessageService,
         warehouseService)
 {
 }
        internal GatewayProviderService(IDatabaseUnitOfWorkProvider provider, RepositoryFactory repositoryFactory, 
            IShipMethodService shipMethodService, IShipRateTierService shipRateTierService, 
            IShipCountryService shipCountryService, IInvoiceService invoiceService, IOrderService orderService, ITaxMethodService taxMethodService, 
            IPaymentService paymentService, IPaymentMethodService paymentMethodService)
        {
            Mandate.ParameterNotNull(provider, "provider");
            Mandate.ParameterNotNull(repositoryFactory, "repositoryFactory");
            Mandate.ParameterNotNull(shipMethodService, "shipMethodService");
            Mandate.ParameterNotNull(shipRateTierService, "shipRateTierService");
            Mandate.ParameterNotNull(shipCountryService, "shipCountryService");
            Mandate.ParameterNotNull(taxMethodService, "countryTaxRateService");
            Mandate.ParameterNotNull(paymentService, "paymentService");
            Mandate.ParameterNotNull(paymentMethodService, "paymentMethodService");
            Mandate.ParameterNotNull(invoiceService, "invoiceService");
            Mandate.ParameterNotNull(orderService, "orderService");

            _uowProvider = provider;
            _repositoryFactory = repositoryFactory;
            _shipMethodService = shipMethodService;
            _shipRateTierService = shipRateTierService;
            _shipCountryService = shipCountryService;
            _invoiceService = invoiceService;
            _orderService = orderService;
            _taxMethodService = taxMethodService;
            _paymentService = paymentService;
            _paymentMethodService = paymentMethodService;
        }
Пример #3
0
        internal GatewayProviderService(IDatabaseUnitOfWorkProvider provider, RepositoryFactory repositoryFactory,
                                        IShipMethodService shipMethodService, IShipRateTierService shipRateTierService,
                                        IShipCountryService shipCountryService, IInvoiceService invoiceService, IOrderService orderService, ITaxMethodService taxMethodService,
                                        IPaymentService paymentService, IPaymentMethodService paymentMethodService)
        {
            Mandate.ParameterNotNull(provider, "provider");
            Mandate.ParameterNotNull(repositoryFactory, "repositoryFactory");
            Mandate.ParameterNotNull(shipMethodService, "shipMethodService");
            Mandate.ParameterNotNull(shipRateTierService, "shipRateTierService");
            Mandate.ParameterNotNull(shipCountryService, "shipCountryService");
            Mandate.ParameterNotNull(taxMethodService, "countryTaxRateService");
            Mandate.ParameterNotNull(paymentService, "paymentService");
            Mandate.ParameterNotNull(paymentMethodService, "paymentMethodService");
            Mandate.ParameterNotNull(invoiceService, "invoiceService");
            Mandate.ParameterNotNull(orderService, "orderService");

            _uowProvider          = provider;
            _repositoryFactory    = repositoryFactory;
            _shipMethodService    = shipMethodService;
            _shipRateTierService  = shipRateTierService;
            _shipCountryService   = shipCountryService;
            _invoiceService       = invoiceService;
            _orderService         = orderService;
            _taxMethodService     = taxMethodService;
            _paymentService       = paymentService;
            _paymentMethodService = paymentMethodService;
        }
Пример #4
0
        internal GatewayProviderService(IDatabaseUnitOfWorkProvider provider, RepositoryFactory repositoryFactory, ILogger logger, IEventMessagesFactory eventMessagesFactory,
                                        IShipMethodService shipMethodService,
                                        IShipRateTierService shipRateTierService, IShipCountryService shipCountryService,
                                        IInvoiceService invoiceService, IOrderService orderService,
                                        ITaxMethodService taxMethodService, IPaymentService paymentService, IPaymentMethodService paymentMethodService,
                                        INotificationMethodService notificationMethodService, INotificationMessageService notificationMessageService, IWarehouseService warehouseService)
            : base(provider, repositoryFactory, logger, eventMessagesFactory)
        {
            Mandate.ParameterNotNull(shipMethodService, "shipMethodService");
            Mandate.ParameterNotNull(shipRateTierService, "shipRateTierService");
            Mandate.ParameterNotNull(shipCountryService, "shipCountryService");
            Mandate.ParameterNotNull(taxMethodService, "countryTaxRateService");
            Mandate.ParameterNotNull(paymentService, "paymentService");
            Mandate.ParameterNotNull(paymentMethodService, "paymentMethodService");
            Mandate.ParameterNotNull(invoiceService, "invoiceService");
            Mandate.ParameterNotNull(orderService, "orderService");
            Mandate.ParameterNotNull(notificationMethodService, "notificationMethodService");
            Mandate.ParameterNotNull(notificationMessageService, "notificationMessageService");
            Mandate.ParameterNotNull(warehouseService, "warehouseService");

            _shipMethodService          = shipMethodService;
            _shipRateTierService        = shipRateTierService;
            _shipCountryService         = shipCountryService;
            _invoiceService             = invoiceService;
            _orderService               = orderService;
            _taxMethodService           = taxMethodService;
            _paymentService             = paymentService;
            _paymentMethodService       = paymentMethodService;
            _notificationMethodService  = notificationMethodService;
            _notificationMessageService = notificationMessageService;
            _warehouseService           = warehouseService;
        }
Пример #5
0
 internal GatewayProviderService(
     IDatabaseUnitOfWorkProvider provider,
     RepositoryFactory repositoryFactory,
     ILogger logger,
     IShipMethodService shipMethodService,
     IShipRateTierService shipRateTierService,
     IShipCountryService shipCountryService,
     IInvoiceService invoiceService,
     IOrderService orderService,
     ITaxMethodService taxMethodService,
     IPaymentService paymentService,
     IPaymentMethodService paymentMethodService,
     INotificationMethodService notificationMethodService,
     INotificationMessageService notificationMessageService,
     IWarehouseService warehouseService)
     : this(
         provider,
         repositoryFactory,
         logger,
         new TransientMessageFactory(),
         shipMethodService,
         shipRateTierService,
         shipCountryService,
         invoiceService,
         orderService,
         taxMethodService,
         paymentService,
         paymentMethodService,
         notificationMethodService,
         notificationMessageService,
         warehouseService)
 {
 }
Пример #6
0
 /// <summary>
 /// This is a helper contructor for unit testing
 /// </summary>
 internal ShipmentApiController(IMerchelloContext merchelloContext, UmbracoContext umbracoContext)
     : base((MerchelloContext)merchelloContext, umbracoContext)
 {
     _shipmentService   = merchelloContext.Services.ShipmentService;
     _invoiceService    = merchelloContext.Services.InvoiceService;
     _orderService      = merchelloContext.Services.OrderService;
     _shipMethodService = ((ServiceContext)merchelloContext.Services).ShipMethodService;
 }
Пример #7
0
 /// <summary>
 /// This is a helper contructor for unit testing
 /// </summary>
 internal ShipmentApiController(IMerchelloContext merchelloContext, UmbracoContext umbracoContext)
     : base((MerchelloContext) merchelloContext, umbracoContext)
 {
     _shipmentService = merchelloContext.Services.ShipmentService;
     _invoiceService = merchelloContext.Services.InvoiceService;
     _orderService = merchelloContext.Services.OrderService;
     _shipMethodService = ((ServiceContext)merchelloContext.Services).ShipMethodService;
 }
Пример #8
0
 internal GatewayProviderService(RepositoryFactory repositoryFactory, IShipMethodService shipMethodService,
                                 IShipRateTierService shipRateTierService, IShipCountryService shipCountryService,
                                 IInvoiceService invoiceService, IOrderService orderService,
                                 ITaxMethodService taxMethodService, IPaymentService paymentService, IPaymentMethodService paymentMethodService)
     : this(new PetaPocoUnitOfWorkProvider(), repositoryFactory, shipMethodService,
            shipRateTierService, shipCountryService, invoiceService, orderService, taxMethodService,
            paymentService, paymentMethodService)
 {
 }
Пример #9
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShipmentApiController"/> class.
 /// </summary>
 /// <param name="merchelloContext">
 /// The merchello context.
 /// </param>
 public ShipmentApiController(IMerchelloContext merchelloContext)
     : base(merchelloContext)
 {
     _shipmentService = merchelloContext.Services.ShipmentService;
     _invoiceService = merchelloContext.Services.InvoiceService;
     _orderService = merchelloContext.Services.OrderService;
     _shipMethodService = ((ServiceContext)merchelloContext.Services).ShipMethodService;
     _merchello = new MerchelloHelper(merchelloContext.Services);
 }
 internal GatewayProviderService(RepositoryFactory repositoryFactory, IShipMethodService shipMethodService, 
      IShipRateTierService shipRateTierService, IShipCountryService shipCountryService, 
      IInvoiceService invoiceService, IOrderService orderService,
      ITaxMethodService taxMethodService, IPaymentService paymentService, IPaymentMethodService paymentMethodService)
     : this(new PetaPocoUnitOfWorkProvider(), repositoryFactory, shipMethodService, 
      shipRateTierService, shipCountryService, invoiceService, orderService, taxMethodService,
      paymentService, paymentMethodService)
 {
 }
Пример #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShipmentApiController"/> class.
 /// </summary>
 /// <param name="merchelloContext">
 /// The merchello context.
 /// </param>
 public ShipmentApiController(IMerchelloContext merchelloContext)
     : base(merchelloContext)
 {
     _shipmentService   = merchelloContext.Services.ShipmentService;
     _invoiceService    = merchelloContext.Services.InvoiceService;
     _orderService      = merchelloContext.Services.OrderService;
     _shipMethodService = ((ServiceContext)merchelloContext.Services).ShipMethodService;
     _merchello         = new MerchelloHelper(merchelloContext.Services, false);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ShipmentApiController"/> class.
 /// This is a helper constructor for unit testing
 /// </summary>
 /// <param name="merchelloContext">
 /// The merchello Context.
 /// </param>
 /// <param name="umbracoContext">
 /// The umbraco Context.
 /// </param>
 internal ShipmentApiController(IMerchelloContext merchelloContext, UmbracoContext umbracoContext)
     : base(merchelloContext, umbracoContext)
 {
     _shipmentService   = merchelloContext.Services.ShipmentService;
     _invoiceService    = merchelloContext.Services.InvoiceService;
     _orderService      = merchelloContext.Services.OrderService;
     _shipMethodService = ((ServiceContext)merchelloContext.Services).ShipMethodService;
     _customerService   = merchelloContext.Services.CustomerService;
     _merchello         = new MerchelloHelper(merchelloContext, false);
 }
Пример #13
0
        protected virtual IEnumerable <ShipMethod_ReadListOutput> ReadList()
        {
            IShipMethodService svcShipMethod = DI.Resolve <IShipMethodService>();
            IEnumerable <ShipMethod_ReadListOutput> outReadList = svcShipMethod.ReadList();

            if (svcShipMethod is IDisposable)
            {
                ((IDisposable)svcShipMethod).Dispose();
            }
            return(outReadList);
        }
 public AbstractShipMethodController(
     ApiSettings settings,
     ILogger <AbstractShipMethodController> logger,
     ITransactionCoordinator transactionCoordinator,
     IShipMethodService shipMethodService,
     IApiShipMethodModelMapper shipMethodModelMapper
     )
     : base(settings, logger, transactionCoordinator)
 {
     this.ShipMethodService     = shipMethodService;
     this.ShipMethodModelMapper = shipMethodModelMapper;
 }
Пример #15
0
        public ShipMethodController(IShipMethodService ShipMethodService, IUnitOfWork unitOfWork, IExceptionHandlingService exec)
        {
            _ShipMethodService = ShipMethodService;
            _unitOfWork        = unitOfWork;
            _exception         = exec;

            //Log Initialization
            LogVm.SessionId      = 0;
            LogVm.ControllerName = System.Web.HttpContext.Current.Request.RequestContext.RouteData.GetRequiredString("controller");
            LogVm.ActionName     = System.Web.HttpContext.Current.Request.RequestContext.RouteData.GetRequiredString("action");
            LogVm.User           = System.Web.HttpContext.Current.Request.RequestContext.HttpContext.User.Identity.Name;
        }
Пример #16
0
 public ShipMethodController(
     ApiSettings settings,
     ILogger <ShipMethodController> logger,
     ITransactionCoordinator transactionCoordinator,
     IShipMethodService shipMethodService,
     IApiShipMethodModelMapper shipMethodModelMapper
     )
     : base(settings,
            logger,
            transactionCoordinator,
            shipMethodService,
            shipMethodModelMapper)
 {
     this.BulkInsertLimit = 250;
     this.MaxLimit        = 1000;
     this.DefaultLimit    = 250;
 }
 public SaleOrderExcelImportController(IProductService productService,
                                       IPersonService personService,
                                       ISaleOrderHeaderService SaleOrderHeaderService,
                                       ISaleOrderLineService SaleOrderLineService,
                                       IUnitOfWork unitOfWork,
                                       IBuyerService buyer,
                                       ICurrencyService curr,
                                       IShipMethodService shipmethod,
                                       IDeliveryTermsService delterms)
 {
     _DeliveryTermsService   = delterms;
     _ShipMethodService      = shipmethod;
     _currencyService        = curr;
     _BuyerService           = buyer;
     _ProductService         = productService;
     _PersonService          = personService;
     _SaleOrderHeaderService = SaleOrderHeaderService;
     _SaleOrderLineService   = SaleOrderLineService;
     _unitOfWork             = unitOfWork;
 }
Пример #18
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GatewayProviderService"/> class.
 /// </summary>
 /// <param name="logger">
 /// The logger.
 /// </param>
 /// <param name="repositoryFactory">
 /// The repository factory.
 /// </param>
 /// <param name="shipMethodService">
 /// The ship method service.
 /// </param>
 /// <param name="shipRateTierService">
 /// The ship rate tier service.
 /// </param>
 /// <param name="shipCountryService">
 /// The ship country service.
 /// </param>
 /// <param name="invoiceService">
 /// The invoice service.
 /// </param>
 /// <param name="orderService">
 /// The order service.
 /// </param>
 /// <param name="taxMethodService">
 /// The tax method service.
 /// </param>
 /// <param name="paymentService">
 /// The payment service.
 /// </param>
 /// <param name="paymentMethodService">
 /// The payment method service.
 /// </param>
 /// <param name="notificationMethodService">
 /// The notification method service.
 /// </param>
 /// <param name="notificationMessageService">
 /// The notification message service.
 /// </param>
 /// <param name="warehouseService">
 /// The warehouse service.
 /// </param>
 internal GatewayProviderService(
     ILogger logger,
     RepositoryFactory repositoryFactory,
     IShipMethodService shipMethodService,
     IShipRateTierService shipRateTierService,
     IShipCountryService shipCountryService,
     IInvoiceService invoiceService,
     IOrderService orderService,
     ITaxMethodService taxMethodService,
     IPaymentService paymentService,
     IPaymentMethodService paymentMethodService,
     INotificationMethodService notificationMethodService,
     INotificationMessageService notificationMessageService,
     IWarehouseService warehouseService)
     : this(new PetaPocoUnitOfWorkProvider(logger),
         repositoryFactory,
         logger,
         shipMethodService,
         shipRateTierService,
         shipCountryService,
         invoiceService,
         orderService,
         taxMethodService,
         paymentService,
         paymentMethodService,
         notificationMethodService,
         notificationMessageService,
         warehouseService)
 {
 }
Пример #19
0
        internal GatewayProviderService(IDatabaseUnitOfWorkProvider provider, RepositoryFactory repositoryFactory, ILogger logger, IEventMessagesFactory eventMessagesFactory,
            IShipMethodService shipMethodService, 
             IShipRateTierService shipRateTierService, IShipCountryService shipCountryService, 
             IInvoiceService invoiceService, IOrderService orderService,
             ITaxMethodService taxMethodService, IPaymentService paymentService, IPaymentMethodService paymentMethodService,
             INotificationMethodService notificationMethodService, INotificationMessageService notificationMessageService, IWarehouseService warehouseService)
            : base(provider, repositoryFactory, logger, eventMessagesFactory)
        {
            Mandate.ParameterNotNull(shipMethodService, "shipMethodService");
            Mandate.ParameterNotNull(shipRateTierService, "shipRateTierService");
            Mandate.ParameterNotNull(shipCountryService, "shipCountryService");
            Mandate.ParameterNotNull(taxMethodService, "countryTaxRateService");
            Mandate.ParameterNotNull(paymentService, "paymentService");
            Mandate.ParameterNotNull(paymentMethodService, "paymentMethodService");
            Mandate.ParameterNotNull(invoiceService, "invoiceService");
            Mandate.ParameterNotNull(orderService, "orderService");
            Mandate.ParameterNotNull(notificationMethodService, "notificationMethodService");
            Mandate.ParameterNotNull(notificationMessageService, "notificationMessageService");
            Mandate.ParameterNotNull(warehouseService, "warehouseService");

            _shipMethodService = shipMethodService;
            _shipRateTierService = shipRateTierService;
            _shipCountryService = shipCountryService;
            _invoiceService = invoiceService;
            _orderService = orderService;
            _taxMethodService = taxMethodService;
            _paymentService = paymentService;
            _paymentMethodService = paymentMethodService;
            _notificationMethodService = notificationMethodService;
            _notificationMessageService = notificationMessageService;
            _warehouseService = warehouseService;
        }
Пример #20
0
 public ShipMethodController(ErrorList errorList, ErrorParser errorParser, IShipMethodService service)
 {
     currentErrors = errorList;
     errorsParser  = errorParser;
     svc           = service;
 }
Пример #21
0
 internal GatewayProviderService(
     IDatabaseUnitOfWorkProvider provider, 
     RepositoryFactory repositoryFactory, 
     ILogger logger, 
     IShipMethodService shipMethodService, 
     IShipRateTierService shipRateTierService, 
     IShipCountryService shipCountryService, 
     IInvoiceService invoiceService, 
     IOrderService orderService, 
     ITaxMethodService taxMethodService, 
     IPaymentService paymentService, 
     IPaymentMethodService paymentMethodService, 
     INotificationMethodService notificationMethodService, 
     INotificationMessageService notificationMessageService,
     IWarehouseService warehouseService)
     : this(provider,
         repositoryFactory,
         logger,
         new TransientMessageFactory(),
         shipMethodService,
         shipRateTierService,
         shipCountryService,
         invoiceService,
         orderService,
         taxMethodService,
         paymentService,
         paymentMethodService,
         notificationMethodService,
         notificationMessageService,
         warehouseService)
 {
 }
Пример #22
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShipmentApiController"/> class. 
 /// This is a helper constructor for unit testing
 /// </summary>
 /// <param name="merchelloContext">
 /// The merchello Context.
 /// </param>
 /// <param name="umbracoContext">
 /// The umbraco Context.
 /// </param>
 internal ShipmentApiController(IMerchelloContext merchelloContext, UmbracoContext umbracoContext)
     : base(merchelloContext, umbracoContext)
 {
     _shipmentService = merchelloContext.Services.ShipmentService;
     _invoiceService = merchelloContext.Services.InvoiceService;
     _orderService = merchelloContext.Services.OrderService;
     _shipMethodService = ((ServiceContext)merchelloContext.Services).ShipMethodService;
     _customerService = merchelloContext.Services.CustomerService;
     _merchello = new MerchelloHelper(merchelloContext.Services, false);
 }
 public ShipMethodController(ErrorList errorList, ErrorParser errorParser, IShipMethodService service)
     : base(errorList, errorParser)
 {
     svc = service;
 }
Пример #24
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OrderConfirmationTrigger"/> class.
 /// </summary>
 /// <param name="merchelloContext">
 /// The <see cref="IMerchelloContext"/>.
 /// </param>
 public OrderConfirmationTrigger(IMerchelloContext merchelloContext)
 {
     Mandate.ParameterNotNull(merchelloContext, "merchelloContext");
     _storeSettingService = merchelloContext.Services.StoreSettingService;
     _shipMethodService   = ((ServiceContext)merchelloContext.Services).ShipMethodService;
 }