Example #1
0
        public CatalogExportImport(
            ICatalogSearchService catalogSearchService,
            ICatalogService catalogService,
            ICategoryService categoryService,
            IItemService itemService,
            IPropertyService propertyService,
            IBlobStorageProvider blobStorageProvider,
            IAssociationService associationService,
            ISettingsManager settingsManager,
            IProperyDictionaryItemSearchService propertyDictionarySearchService,
            IProperyDictionaryItemService propertyDictionaryService
            )
        {
            _blobStorageProvider             = blobStorageProvider;
            _catalogSearchService            = catalogSearchService;
            _catalogService                  = catalogService;
            _categoryService                 = categoryService;
            _itemService                     = itemService;
            _propertyService                 = propertyService;
            _associationService              = associationService;
            _settingsManager                 = settingsManager;
            _propertyDictionarySearchService = propertyDictionarySearchService;
            _propertyDictionaryService       = propertyDictionaryService;

            _serializer = new JsonSerializer
            {
                ReferenceLoopHandling = ReferenceLoopHandling.Ignore,
                Formatting            = Formatting.Indented,
                NullValueHandling     = NullValueHandling.Ignore
            };
        }
Example #2
0
 public ItemServiceImpl(Func <ICatalogRepository> catalogRepositoryFactory, ICommerceService commerceService, IOutlineService outlineService, IAssociationService associationService, ICatalogService catalogService, ICategoryService categoryService, AbstractValidator <IHasProperties> hasPropertyValidator)
 {
     _catalogService       = catalogService;
     _categoryService      = categoryService;
     _commerceService      = commerceService;
     _outlineService       = outlineService;
     _associationService   = associationService;
     _repositoryFactory    = catalogRepositoryFactory;
     _hasPropertyValidator = hasPropertyValidator;
 }
Example #3
0
 public RecommendationController(
     IEntityAnalysisService entityAnalysisService,
     IAssociationService associationService,
     IProductService productService,
     ILogger logger)
 {
     _entityAnalysisService = entityAnalysisService;
     _associationService    = associationService;
     _productService        = productService;
     _logger = logger;
 }
Example #4
0
 public AssociationsController(
     IAssociationSearchService associationSearchService,
     IAssociationService associationService,
     IAuthorizationService authorizationService,
     IAssociationEvaluator associationEvaluator,
     IAssociationConditionEvaluator associationConditionEvaluator)
 {
     _associationSearchService      = associationSearchService;
     _associationService            = associationService;
     _authorizationService          = authorizationService;
     _associationEvaluator          = associationEvaluator;
     _associationConditionEvaluator = associationConditionEvaluator;
 }
        public ReferencedAssociationsTest()
        {
            var associations = GetTestAssociationEntities();
            var products     = GetTestProductEntities();

            var catalogRepository = new Mock <ICatalogRepository>();

            catalogRepository.Setup(r => r.Items).Returns(products);
            catalogRepository.Setup(r => r.GetItemByIds(It.IsAny <string[]>(), It.IsAny <ItemResponseGroup>())).Returns((string[] ids, ItemResponseGroup responseGroup) =>
            {
                return(products.Where(p => ids.Contains(p.Id)).ToArray());
            });
            catalogRepository.Setup(r => r.Associations).Returns(associations);

            _associationService = new AssociationServiceImpl(() => catalogRepository.Object);
        }
        public CatalogExportImport(ICatalogSearchService catalogSearchService,
                                   ICatalogService catalogService, ICategoryService categoryService, IItemService itemService,
                                   IPropertyService propertyService, IBlobStorageProvider blobStorageProvider, IAssociationService associationService)
        {
            _blobStorageProvider  = blobStorageProvider;
            _catalogSearchService = catalogSearchService;
            _catalogService       = catalogService;
            _categoryService      = categoryService;
            _itemService          = itemService;
            _propertyService      = propertyService;
            _associationService   = associationService;

            _serializer = new JsonSerializer();
            _serializer.ReferenceLoopHandling = ReferenceLoopHandling.Ignore;
            _serializer.Formatting            = Formatting.Indented;
            _serializer.NullValueHandling     = NullValueHandling.Ignore;
        }
Example #7
0
 public CatalogExportImport(ICatalogService catalogService, IProductSearchService productSearchService, ICategorySearchService categorySearchService, ICategoryService categoryService,
                            IItemService itemService, IPropertyService propertyService, IPropertySearchService propertySearchService, IProperyDictionaryItemSearchService propertyDictionarySearchService,
                            IProperyDictionaryItemService propertyDictionaryService, JsonSerializer jsonSerializer, IBlobStorageProvider blobStorageProvider, IAssociationService associationService)
 {
     _catalogService                  = catalogService;
     _productSearchService            = productSearchService;
     _categorySearchService           = categorySearchService;
     _categoryService                 = categoryService;
     _itemService                     = itemService;
     _propertyService                 = propertyService;
     _propertySearchService           = propertySearchService;
     _propertyDictionarySearchService = propertyDictionarySearchService;
     _propertyDictionaryService       = propertyDictionaryService;
     _jsonSerializer                  = jsonSerializer;
     _blobStorageProvider             = blobStorageProvider;
     _associationService              = associationService;
 }
 public CatalogModuleAssociationsController(IAssociationService associationService, IProductAssociationSearchService productAssociationSearchService)
 {
     _associationService = associationService;
     _productAssociationSearchService = productAssociationSearchService;
 }
Example #9
0
 public HomeController(IUserService repo, IAssociationService assoc)
 {
     this._repo  = repo;
     this._assoc = assoc;
 }
 public UrlsController(IUrlService urlService, IAssociationService associationService)
 {
     _urlService         = urlService;
     _associationService = associationService;
 }
        //private readonly IHuntingGroundsService _serv;

        public AsocAdminController(IUserService repo, IAssociationService assoc)
        {
            _repo  = repo;
            _assoc = assoc;
        }
 public HuntingGroundsService(Assignment2Context context, IAssociationService associationService)
 {
     _context            = context;
     _associationService = associationService;
 }
Example #13
0
 public AssociationsExportImport(IAssociationService associationService, IAssociationSearchService associationSearchService, JsonSerializer jsonSerializer)
 {
     _associationService       = associationService;
     _associationSearchService = associationSearchService;
     _serializer = jsonSerializer;
 }
Example #14
0
 public AssociationSearchService(Func <IAssociationsRepository> associationsRepositoryFactory, IPlatformMemoryCache platformMemoryCache, IAssociationService associationService)
 {
     _associationsRepositoryFactory = associationsRepositoryFactory;
     _platformMemoryCache           = platformMemoryCache;
     _associationService            = associationService;
 }