コード例 #1
0
        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"
                           };
        }
コード例 #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;
		}
コード例 #4
0
 public ProductRepository(IFileLoader loader, IProductMapper mapper)
 {
     this.loader = loader;
     this.mapper = mapper;
 }
コード例 #5
0
 public ProductController(IProductMapper productMapper, ICategoryMapper categoryMapper)
 {
     _ProductMapper  = productMapper;
     _categorymapper = categoryMapper;
 }
コード例 #6
0
 public ProductsController(IFunctionApplicationBuilder builder, IMediator mediator, IProductMapper mapper, IGitHaubClient haubClient, ILoggerFactory loggerFactory) : base(builder)
 {
     _mediator   = mediator;
     _mapper     = mapper;
     _haubClient = haubClient;
     _logger     = loggerFactory.CreateLogger <ProductsController>();
 }
コード例 #7
0
 public ProductService(IProductRepository productRepository, IProductMapper productMapper)
 {
     _productRepository = productRepository;
     _productMapper     = productMapper;
 }
コード例 #8
0
 public ProductServiceApplication(IProductService productService,
                                  IProductMapper productMapper)
 {
     this.productService = productService;
     this.productMapper  = productMapper;
 }
コード例 #9
0
 public ProductRepoDB(Entity.StoreDBContext context, IProductMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
 public DiscontinueProductCommandHandler(IProductMapper productMapper, IUnitOfWork unitOfWork)
 {
     _productMapper = productMapper;
     _unitOfWork    = unitOfWork;
 }
コード例 #11
0
 public ProductController(IDocumentService documentService, IProductMapper productMapper)
 {
     this.documentService = documentService;
     this.productMapper   = productMapper;
 }
コード例 #12
0
 public GetProductByIdQueryHandler(IProductMapper productMapper, IUnitOfWork unitOfWork)
 {
     _productMapper = productMapper;
     _unitOfWork    = unitOfWork;
 }
コード例 #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;
 }
コード例 #15
0
 public UpdateProductHandler(ProductManagementContext context,
                             IProductMapper productMapper)
 {
     _context       = context;
     _productMapper = productMapper;
 }
コード例 #16
0
 public CreateProductCommandHandler(IProductMapper productMapper, IUnitOfWork unitOfWork)
 {
     _productMapper = productMapper;
     _unitOfWork    = unitOfWork;
 }
コード例 #17
0
 public UserMapper(ICompanyMapper companyMapper, IProductMapper productMapper)
 {
     this.companyMapper = companyMapper;
     this.productMapper = productMapper;
 }
コード例 #18
0
 public ApplicationServiceProduct(IProductService productService, IProductMapper mapper)
 {
     this.serviceProduct = productService;
     this.mapper         = mapper;
 }
コード例 #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;
 }
コード例 #20
0
ファイル: ProductRepository.cs プロジェクト: snahider/SOLID
 public ProductRepository(IFileLoader loader, IProductMapper mapper)
 {
     this.loader = loader;
     this.mapper = mapper;
 }
コード例 #21
0
 public ProductRepository()
 {
     loader = new FileLoader();
     mapper = new ProductMapper();
 }
コード例 #22
0
 public CompanyMapper(IProductMapper productMapper, ICompanyFunctionMapper companyFunctionMapper)
 {
     this.productMapper         = productMapper;
     this.companyFunctionMapper = companyFunctionMapper;
 }
コード例 #23
0
 public OrderController(IOrderMapper orderMapper, ICustomerMapper customerMapper, IProductMapper productMapper, IOrderDetailMapper orderDetailMapper)
 {
     _orderDetailMapper = orderDetailMapper;
     _OrderMapper       = orderMapper;
     _customerMapper    = customerMapper;
     _productMapper     = productMapper;
 }
コード例 #24
0
ファイル: OrdersService.svc.cs プロジェクト: DVDPT/ASI
        private ProductBase EnsureProductExistance(IProductMapper mapper, int id)
        {
            var product = mapper.Get(id);

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

            return product;
        }