Пример #1
0
 public UpdateProductHandler(IWriteOnlyProductRepository writeOnlyProductRepository,
                             IReadOnlyProductRepository readOnlyProductRepository,
                             IImageFileResizeService imageFileResizeService)
 {
     _writeOnlyProductRepository = writeOnlyProductRepository;
     _readOnlyProductRepository  = readOnlyProductRepository;
     _imageFileResizeService     = imageFileResizeService;
 }
Пример #2
0
 public CreateProductHandler(IWriteOnlyProductRepository writeOnlyProductRepository,
                             IReadOnlyProductRepository readOnlyProductRepository,
                             IImageFileResizeService imageFileResizeService,
                             IMapper mapper)
 {
     _writeOnlyProductRepository = writeOnlyProductRepository;
     _readOnlyProductRepository  = readOnlyProductRepository;
     _imageFileResizeService     = imageFileResizeService;
     _mapper = mapper;
 }
 public ReadOnlyProductRepositoryDecorator(IReadOnlyProductRepository productRepository)
 {
     _productRepository = productRepository;
 }
Пример #4
0
 public DoesProductExistHandler(IReadOnlyProductRepository readOnlyProductRepository)
 {
     _readOnlyProductRepository = readOnlyProductRepository;
 }
Пример #5
0
 public GetProductListUseCase(IReadOnlyProductRepository readOnlyProductRepository)
 => _readOnlyProductRepository = readOnlyProductRepository;
Пример #6
0
 public GetProductsHandler(IReadOnlyProductRepository readOnlyProductRepository,
                           IMapper mapper)
 {
     _readOnlyProductRepository = readOnlyProductRepository;
     _mapper = mapper;
 }
Пример #7
0
 public DeleteProductHandler(IWriteOnlyProductRepository writeOnlyProductRepository,
                             IReadOnlyProductRepository readOnlyProductRepository)
 {
     _writeOnlyProductRepository = writeOnlyProductRepository;
     _readOnlyProductRepository  = readOnlyProductRepository;
 }
Пример #8
0
 public ExportProductsHandler(IReadOnlyProductRepository readOnlyProductRepository,
                              IProductExportService productExportService)
 {
     _readOnlyProductRepository = readOnlyProductRepository;
     _productExportService      = productExportService;
 }
 public CachedReadOnlyProductRepository(IReadOnlyProductRepository productRepository,
                                        IDomainObjectsCache <Product> productsCache)
     : base(productRepository)
     => _productsCache = productsCache;