public CreateInvoiceCommandHandler(IInvoiceRepositoryAsync invoiceRepository, IProductRepositoryAsync productRepository, IPersonRepositoryAsync personRepositoryAsync, IInvoiceDetailRepositoryAsync invoiceDetailRepository, IEmailScheduler emailScheduler) { _invoiceRepository = invoiceRepository; _personRepository = personRepositoryAsync; _productRepository = productRepository; _invoiceDetailRepository = invoiceDetailRepository; _emailScheduler = emailScheduler; }
public SaveInvoiceHandler(IInvoiceRepositoryAsync invoiceRepository, IMapper mapper) { _invoiceRepository = invoiceRepository; _mapper = mapper; }