public CatalogElementFactory(IConfiguration config, EpiMappingHelper mappingHelper, CatalogCodeGenerator catalogCodeGenerator, PimFieldAdapter pimFieldAdapter)
 {
     _config               = config;
     _mappingHelper        = mappingHelper;
     _catalogCodeGenerator = catalogCodeGenerator;
     _pimFieldAdapter      = pimFieldAdapter;
 }
 public CatalogCodeGeneratorTests()
 {
     _config = new Mock <IConfiguration>();
     _config.Setup(x => x.EpiCodeMapping).Returns(new Dictionary <string, string>());
     _entityService        = new Mock <IEntityService>();
     _catalogCodeGenerator = new CatalogCodeGenerator(_config.Object, _entityService.Object);
 }
Ejemplo n.º 3
0
 public EpiApi(IConfiguration config,
               CatalogCodeGenerator catalogCodeGenerator,
               PimFieldAdapter pimFieldAdapter)
 {
     _config = config;
     _catalogCodeGenerator = catalogCodeGenerator;
     _httpClient           = new HttpClientInvoker(config);
 }
Ejemplo n.º 4
0
        public ResourceElementFactory(CatalogElementFactory catalogElementFactory,
                                      EpiMappingHelper mappingHelper,
                                      CatalogCodeGenerator catalogCodeGenerator,
                                      IConfiguration config,
                                      IEntityService entityService)
        {
            _catalogElementFactory = catalogElementFactory;
            _mappingHelper         = mappingHelper;
            _catalogCodeGenerator  = catalogCodeGenerator;
            _config        = config;
            _entityService = entityService;

            _isImageCache = new Dictionary <string, bool>();
        }
 public CatalogDocumentFactory(IConfiguration config,
                               EpiApi epiApi,
                               CatalogElementFactory catalogElementFactory,
                               EpiMappingHelper epiMappingHelper,
                               ChannelHelper channelHelper,
                               CatalogCodeGenerator catalogCodeGenerator,
                               IEntityService entityService)
 {
     _config = config;
     _epiApi = epiApi;
     _catalogElementFactory = catalogElementFactory;
     _epiMappingHelper      = epiMappingHelper;
     _channelHelper         = channelHelper;
     _catalogCodeGenerator  = catalogCodeGenerator;
     _entityService         = entityService;
 }