Exemplo n.º 1
0
        public ProductAppServiceTests()
        {
            _productAppService    = GetRequiredService <IProductAppService>();
            _eShopProductsOptions = GetRequiredService <IOptions <EShopProductsOptions> >().Value;

            // Arrange
            _eShopProductsOptions.Groups.Configure("Default Group Name", x =>
            {
                x.DisplayName = "Default Group Name";
                x.Description = "Default Description";
            });
        }
Exemplo n.º 2
0
 public ProductAppService(
     IProductManager productManager,
     IOptions <EShopProductsOptions> options,
     IProductInventoryProvider productInventoryProvider,
     IAttributeOptionIdsSerializer attributeOptionIdsSerializer,
     IProductStoreRepository productStoreRepository,
     IProductRepository repository) : base(repository)
 {
     _productManager               = productManager;
     _options                      = options.Value;
     _productInventoryProvider     = productInventoryProvider;
     _attributeOptionIdsSerializer = attributeOptionIdsSerializer;
     _productStoreRepository       = productStoreRepository;
     _repository                   = repository;
 }
Exemplo n.º 3
0
 public ProductAppService(
     IProductManager productManager,
     IOptions <EShopProductsOptions> options,
     IDistributedCache <ProductViewCacheItem> cache,
     IProductInventoryProvider productInventoryProvider,
     IProductViewCacheKeyProvider productViewCacheKeyProvider,
     IAttributeOptionIdsSerializer attributeOptionIdsSerializer,
     IProductRepository repository) : base(repository)
 {
     _productManager               = productManager;
     _cache                        = cache;
     _options                      = options.Value;
     _productInventoryProvider     = productInventoryProvider;
     _productViewCacheKeyProvider  = productViewCacheKeyProvider;
     _attributeOptionIdsSerializer = attributeOptionIdsSerializer;
     _repository                   = repository;
 }
Exemplo n.º 4
0
 public ProductAppServiceTests()
 {
     _productAppService    = GetRequiredService <IProductAppService>();
     _eShopProductsOptions = GetRequiredService <IOptions <EShopProductsOptions> >().Value;
 }
 public InventoryProviderConfigurationProvider(IOptions <EShopProductsOptions> options)
 {
     _options = options.Value;
 }
 public ProductGroupConfigurationProvider(IOptions <EShopProductsOptions> options)
 {
     _options = options.Value;
 }