protected void SetUp()
        {
            productMapper = new ProductMapper(TestHelper.AwsAccessKey, TestHelper.AssociateTag, TestHelper.SecretAccessKey);

            ASINList = new List<string>
                           {
                               "1556159005",
                               "0201485672",
                               "0471137723",
                               "0132624788",
                               "0471467413",
                               "0735618798",
                               "1886411972",
                               "0131495054",
                               "0673386023",
                               "1883577039",
                               "0262560992",
                               "026256100X",
                               "0262562146"
                           };
        }
Ejemplo n.º 2
0
 public ProductController(IDocumentService documentService, IProductMapper productMapper)
 {
     this.documentService = documentService;
     this.productMapper = productMapper;
 }
		/// <summary>
		/// Constructor
		/// </summary>
		/// <param name="mapper">Mapper dependency</param>
		public ProductController(IProductMapper mapper)
		{
			_mapper = mapper;
		}
Ejemplo n.º 4
0
 public ProductRepository(IFileLoader loader, IProductMapper mapper)
 {
     this.loader = loader;
     this.mapper = mapper;
 }
 public ProductController(IProductMapper productMapper, ICategoryMapper categoryMapper)
 {
     _ProductMapper  = productMapper;
     _categorymapper = categoryMapper;
 }
 public ProductsController(IFunctionApplicationBuilder builder, IMediator mediator, IProductMapper mapper, IGitHaubClient haubClient, ILoggerFactory loggerFactory) : base(builder)
 {
     _mediator   = mediator;
     _mapper     = mapper;
     _haubClient = haubClient;
     _logger     = loggerFactory.CreateLogger <ProductsController>();
 }
Ejemplo n.º 7
0
 public ProductService(IProductRepository productRepository, IProductMapper productMapper)
 {
     _productRepository = productRepository;
     _productMapper     = productMapper;
 }
 public ProductServiceApplication(IProductService productService,
                                  IProductMapper productMapper)
 {
     this.productService = productService;
     this.productMapper  = productMapper;
 }
Ejemplo n.º 9
0
 public ProductRepoDB(Entity.StoreDBContext context, IProductMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
 public DiscontinueProductCommandHandler(IProductMapper productMapper, IUnitOfWork unitOfWork)
 {
     _productMapper = productMapper;
     _unitOfWork    = unitOfWork;
 }
Ejemplo n.º 11
0
 public ProductController(IDocumentService documentService, IProductMapper productMapper)
 {
     this.documentService = documentService;
     this.productMapper   = productMapper;
 }
 public GetProductByIdQueryHandler(IProductMapper productMapper, IUnitOfWork unitOfWork)
 {
     _productMapper = productMapper;
     _unitOfWork    = unitOfWork;
 }
Ejemplo n.º 13
0
 public ProductController(IProductMapper productMapper, IProductService productRepository)
 {
     _productMapper  = productMapper;
     _productService = productRepository;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="mapper">Mapper dependency</param>
 public ProductController(IProductMapper mapper)
 {
     _mapper = mapper;
 }
Ejemplo n.º 15
0
 public UpdateProductHandler(ProductManagementContext context,
                             IProductMapper productMapper)
 {
     _context       = context;
     _productMapper = productMapper;
 }
Ejemplo n.º 16
0
 public CreateProductCommandHandler(IProductMapper productMapper, IUnitOfWork unitOfWork)
 {
     _productMapper = productMapper;
     _unitOfWork    = unitOfWork;
 }
Ejemplo n.º 17
0
 public UserMapper(ICompanyMapper companyMapper, IProductMapper productMapper)
 {
     this.companyMapper = companyMapper;
     this.productMapper = productMapper;
 }
Ejemplo n.º 18
0
 public ApplicationServiceProduct(IProductService productService, IProductMapper mapper)
 {
     this.serviceProduct = productService;
     this.mapper         = mapper;
 }
Ejemplo n.º 19
0
 public PackListService(IPackListsRepository packListsRepository, IProductRepository productRepository, IMessageService messageService, IProductMapper productMapper, IPersonalizedProductRepository personalizedProductRepository, ICurrentUser currentUser,
                        IProductGroupRepository productGroupRepository,
                        IApiClient apiClient,
                        IHttpContextAccessor httpContextAccessor)
 {
     _packListsRepository           = packListsRepository;
     _productRepository             = productRepository;
     _messageService                = messageService;
     _productMapper                 = productMapper;
     _personalizedProductRepository = personalizedProductRepository;
     _currentUser            = currentUser;
     _productGroupRepository = productGroupRepository;
     _apiClient           = apiClient;
     _httpContextAccessor = httpContextAccessor;
 }
Ejemplo n.º 20
0
 public ProductRepository(IFileLoader loader, IProductMapper mapper)
 {
     this.loader = loader;
     this.mapper = mapper;
 }
Ejemplo n.º 21
0
 public ProductRepository()
 {
     loader = new FileLoader();
     mapper = new ProductMapper();
 }
Ejemplo n.º 22
0
 public CompanyMapper(IProductMapper productMapper, ICompanyFunctionMapper companyFunctionMapper)
 {
     this.productMapper         = productMapper;
     this.companyFunctionMapper = companyFunctionMapper;
 }
 public OrderController(IOrderMapper orderMapper, ICustomerMapper customerMapper, IProductMapper productMapper, IOrderDetailMapper orderDetailMapper)
 {
     _orderDetailMapper = orderDetailMapper;
     _OrderMapper       = orderMapper;
     _customerMapper    = customerMapper;
     _productMapper     = productMapper;
 }
Ejemplo n.º 24
0
        private ProductBase EnsureProductExistance(IProductMapper mapper, int id)
        {
            var product = mapper.Get(id);

            if (product == null)
                throw new ProductNotFoundException(id);

            return product;
        }