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"; }); }
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; }
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; }
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; }