Esempio n. 1
0
 public EbayMagentoProcessor(IMapper mapper,
                             IEbayService ebayService,
                             IMagentoService magentoService,
                             IConnectionService connectionService,
                             IUserChannelService userChannelService,
                             IChannelEbayService channelEbayService,
                             IChannelMagentoService channelMagentoService,
                             ITicketEbayService ticketEbayService,
                             IMessageEbayService messageEbayService,
                             ITicketMagentoService ticketMagentoService,
                             IMessageMagentoService messageMagentoService,
                             ITicketEbayMagentoService ticketEbayMagentoService,
                             IMessageEbayMagentoService messageEbayMagentoService)
 {
     this.mapper                    = mapper;
     this.ebayService               = ebayService;
     this.magentoService            = magentoService;
     this.connectionService         = connectionService;
     this.userChannelService        = userChannelService;
     this.channelEbayService        = channelEbayService;
     this.channelMagentoService     = channelMagentoService;
     this.ticketEbayService         = ticketEbayService;
     this.messageEbayService        = messageEbayService;
     this.ticketMagentoService      = ticketMagentoService;
     this.messageMagentoService     = messageMagentoService;
     this.ticketEbayMagentoService  = ticketEbayMagentoService;
     this.messageEbayMagentoService = messageEbayMagentoService;
 }
Esempio n. 2
0
        protected IEnumerable <Product> GetOnlyProductsCreatedForThisTests(IMagentoService service)
        {
            var getProductsTask = service.GetProductsAsync(new[] { 0, 1 });

            getProductsTask.Wait();

            var allProductsinMagent             = getProductsTask.Result.ToList();
            var onlyProductsCreatedForThisTests = allProductsinMagent.Where(x => x.Sku.StartsWith("testsku", StringComparison.InvariantCultureIgnoreCase) && x.ProductType == "simple").TakeWhile((x, i) => i < 5);

            return(onlyProductsCreatedForThisTests);
        }
 public ServiceConnectionController(IEbayService ebayService,
                                    IMagentoService magentoService,
                                    IGmailService gmailService,
                                    IChannelEbayService channelEbayService,
                                    IChannelMagentoService channelMagentoService,
                                    IChannelEmailService channelEmailService,
                                    IUserService userService,
                                    IUserChannelService userChannelSerivce,
                                    IConnectionService connectionService,
                                    IMapper mapper)
 {
     this.ebayService           = ebayService;
     this.magentoService        = magentoService;
     this.gmailService          = gmailService;
     this.channelEbayService    = channelEbayService;
     this.channelMagentoService = channelMagentoService;
     this.channelEmailService   = channelEmailService;
     this.userService           = userService;
     this.userChannelSerivce    = userChannelSerivce;
     this.connectionService     = connectionService;
     this.mapper = mapper;
 }