/// <summary> /// Initializes a new instance of the <see cref="TransactionMapper"/> class. /// </summary> /// <param name="productService">The inventory service.</param> /// <param name="fixedCommissionService">The fixed commission amount service.</param> /// <param name="mandarinConfiguration">The application configuration.</param> public TransactionMapper(IQueryableProductService productService, IFixedCommissionService fixedCommissionService, IOptions <MandarinConfiguration> mandarinConfiguration) { this.productService = productService; this.fixedCommissionService = fixedCommissionService; this.mandarinConfiguration = mandarinConfiguration; }
/// <summary> /// Initializes a new instance of the <see cref="ProductsGrpcService"/> class. /// </summary> /// <param name="productService">The application service for interacting with commissions and records of sales.</param> /// <param name="mapper">The mapper to translate between different object types.</param> public ProductsGrpcService(IQueryableProductService productService, IMapper mapper) { this.productService = productService; this.mapper = mapper; }