Пример #1
0
 public ProductSyncProcessor(ICategorySyncProcessor categorySyncProcessor, IBrandSyncProcessor brandSyncProcessor, IStoreSyncProcessor storeSyncProcessor, ISectionSyncProcessor sectionSyncProcessor, IChannelMapper channelMapper)
 {
     _categorySyncProcessor = categorySyncProcessor;
     _brandSyncProcessor    = brandSyncProcessor;
     _sectionSyncProcessor  = sectionSyncProcessor;
     _channelMapper         = channelMapper;
 }
Пример #2
0
        public ProductSyncProcessor(IRemoteRepository remoteRepository, IChannelMapper channelMapper)
        {
            _channelMapper         = channelMapper;
            _categorySyncProcessor = new CategorySyncProcessor(channelMapper);
            _brandSyncProcessor    = new BrandSyncProcessor(remoteRepository, channelMapper);
            var storeSyncProcessor = new StoreSyncProcessor(remoteRepository, channelMapper);

            _sectionSyncProcessor = new SectionSyncProcessor(remoteRepository, storeSyncProcessor, channelMapper);
        }