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