Beispiel #1
0
 public ProductCrudSubService(IProductMapperService productMapperService,
                              IProductFilter productFilter,
                              IProductDomainService productDomainService)
 {
     this.productMapperService = productMapperService;
     this.productFilter        = productFilter;
     this.productDomainService = productDomainService;
 }
Beispiel #2
0
 public OrderService(X.IRespository.DBSession.IWMDBSession repository,
                     IUserDomainService userDomainService,
                     IProductDomainService productDomainService,
                     ILogger <OrderService> logger) : base(repository)
 {
     _userDomainService    = userDomainService;
     _productDomainService = productDomainService;
     _logger = logger;
 }
Beispiel #3
0
 public ProductAppService(
     IUnitOfWorkManager unitOfWorkManager,
     IProductDomainService domainService,
     IProductReadRepository readRepository,
     INotificationHandler notificationHandler)
     : base(notificationHandler)
 {
     _unitOfWorkManager = unitOfWorkManager;
     _domainService     = domainService;
     _readRepository    = readRepository;
 }
Beispiel #4
0
        public ImportOrderCommandHandler(
            HandlerBaseParameters handlerBaseParameters,
            IImportOrderCommandIsValidValidator importOrderCommandIsValidValidator,
            IOrderDomainService orderDomainService,
            ICustomerDomainService customerDomainService,
            IProductDomainService productDomainService
            ) : base(handlerBaseParameters)
        {
            _importOrderCommandIsValidValidator = importOrderCommandIsValidValidator;

            _orderDomainService    = orderDomainService;
            _customerDomainService = customerDomainService;
            _productDomainService  = productDomainService;
        }
Beispiel #5
0
 public ProductAppService(
     IProductDomainService productDomainService,
     IAuthorizationService authorizationService,
     IUnitOfWorkManager unitOfWorkManager,
     IMailSender mailSender,
     ISession session,
     IRealtimeNotifier realtimeNotifier)
 {
     _productDomainService = productDomainService;
     _authorizationService = authorizationService;
     _unitOfWorkManager    = unitOfWorkManager;
     _mailSender           = mailSender;
     _session          = session;
     _realtimeNotifier = realtimeNotifier;
 }
Beispiel #6
0
        // Constructors
        public ImportInvoiceCommandHandler(
            IInMemoryDefaultDomainNotificationHandler inMemoryDefaultDomainNotificationHandler,
            ITenantInfoValueObjectFactory tenantInfoValueObjectFactory,
            ICustomerDomainService customerDomainService,
            IProductDomainService productDomainService,
            IInvoiceDomainService invoiceDomainService,
            IInvoiceFactory invoiceFactory
            ) : base(tenantInfoValueObjectFactory, inMemoryDefaultDomainNotificationHandler)
        {
            _customerDomainService = customerDomainService;
            _productDomainService  = productDomainService;
            _invoiceDomainService  = invoiceDomainService;

            _invoiceFactory = invoiceFactory;
        }
Beispiel #7
0
 public ProductAppService(IProductRepository productRepository,
                          IRepository <ProductSale, Guid> productSaleRepository,
                          IRepository <ProductSalePrice, Guid> productSalePriceRepository,
                          IRepository <Plan, Guid> planRepository,
                          IRepository <PlanPrice, Guid> planPriceRepository,
                          IObjectMapper objectMapper,
                          IProductDomainService productDomainService,
                          IPlanDomainService planDomainService,
                          IPlanPriceDomainService planPriceDomainService)
 {
     _productRepository          = productRepository ?? throw new ArgumentNullException(nameof(productRepository));
     _productSaleRepository      = productSaleRepository ?? throw new ArgumentNullException(nameof(productSaleRepository));
     _productSalePriceRepository = productSalePriceRepository ?? throw new ArgumentNullException(nameof(productSalePriceRepository));
     _planRepository             = planRepository ?? throw new ArgumentNullException(nameof(planRepository));
     _planPriceRepository        = planPriceRepository ?? throw new ArgumentNullException(nameof(planPriceRepository));
     _objectMapper           = objectMapper ?? throw new ArgumentNullException(nameof(objectMapper));
     _productDomainService   = productDomainService ?? throw new ArgumentNullException(nameof(productDomainService));
     _planDomainService      = planDomainService ?? throw new ArgumentNullException(nameof(planDomainService));
     _planPriceDomainService = planPriceDomainService ?? throw new ArgumentNullException(nameof(planPriceDomainService));
 }
Beispiel #8
0
 public ProductAppService(IProductDomainService domainService, IProductReadRepository readRepository, INotificationHandler notificationHandler)
     : base(notificationHandler)
 {
     _domainService  = domainService;
     _readRepository = readRepository;
 }
Beispiel #9
0
 public ProductAppService(IProductDomainService productDomainService, IGuidGenerator guidGenerator, IWebHostEnvironment webHostEnvironment)
 {
     this.productDomainService = productDomainService;
     this.guidGenerator        = guidGenerator;
     this.webHostEnvironment   = webHostEnvironment;
 }
Beispiel #10
0
 public ProductAppService(IProductDomainService productDomainService)
 {
     _productDomainService = productDomainService;
 }
Beispiel #11
0
        public ProductDomainServiceTests()
        {
            _domainService = Resolve <IProductDomainService>();

            _culture = CultureInfo.GetCultureInfo("pt-BR");
        }
Beispiel #12
0
 public ProductApplicationService(
     IProductDomainService productDomainService,
     IUnitOfWorkManager unitOfWorkManager) : base(unitOfWorkManager)
 {
     this._productDomainService = productDomainService;
 }
 public ProductApplicationService(IProductDomainService productService, IMapper mapper)
 {
     _productService = productService;
     _mapper         = mapper;
 }
 public ProductsController(IProductDomainService domainService)
 {
     _productDomainService = domainService;
 }
Beispiel #15
0
 public ProductController(ApplicationContext context)
 {
     _domainService = new ProductDomainService(context);
 }
 public OrdersController(IOrderDomainService service, IProductDomainService domainService, IExecutorDomainService executorDomain)
 {
     _orderDomainService    = service;
     _productDomainService  = domainService;
     _executorDomainService = executorDomain;
 }