Exemplo n.º 1
0
 // Constructors
 protected CommandHandlerBase(
     ITenantInfoValueObjectFactory tenantInfoValueObjectFactory,
     IInMemoryDefaultDomainNotificationHandler inMemoryDefaultDomainNotificationHandler
     )
 {
     TenantInfoValueObject = tenantInfoValueObjectFactory.CreateAsync().GetAwaiter().GetResult();
     InMemoryDefaultDomainNotificationHandler = inMemoryDefaultDomainNotificationHandler;
     CommandHandler = GetCommandHandler();
 }
Exemplo n.º 2
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;
        }