public void Setup() { _vatFinder = Substitute.For <IVatFinder>(); _invoiceFactory = Substitute.For <IInvoiceFactory>(); _order = Substitute.For <IOrder>(); }
public InvoiceManager(IInvoiceRepository invoiceRepository, IInvoiceFactory invoiceFactory, IInvoiceLineFactory invoiceLineFactory, ICustomerRepository customerRepository, ITimeEntryRepository timeEntryRepositoy, IAppSettings appSettings) { _invoiceFactory = invoiceFactory; _invoiceRepository = invoiceRepository; _customerRepository = customerRepository; _timeEntryRepositoy = timeEntryRepositoy; _appSettings = appSettings; _invoiceLineFactory = invoiceLineFactory; }
public InvoiceDomainService( IBus bus, IInvoiceFactory invoiceFactory, IInvoiceIsValidForImportValidation invoiceIsValidForImportValidation, IInvoiceWasImportedEventFactory invoiceWasImportedEventFactory ) : base(bus, invoiceFactory) { _invoiceIsValidForImportValidation = invoiceIsValidForImportValidation; _invoiceWasImportedEventFactory = invoiceWasImportedEventFactory; }
public InvoicesController(IInvoicesCommand command, IInvoicesQuery query, IInvoiceFactory factory, ISalesOrderQuery customerOrderQuery, ILogger <InvoicesController> logger) { _command = command; _query = query; _factory = factory; _customerOrderQuery = customerOrderQuery; _logger = logger; }
// 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; }
public OrderPosWorkflow(INotifyService notifyService, InventoryAdjustmentNoteFactory inventoryAdjustmentNoteFactory, InventoryAdjustmentNoteWfManager inventoryAdjustmentNoteWfManager, ICostCentreRepository costCentreRepository, IInvoiceFactory invoiceFactory, IInvoiceRepository invoiceRepository, IConfirmInvoiceWorkFlowManager invoiceWorkFlowManager, IReceiptWorkFlowManager receiptWorkFlowManager, IReceiptFactory receiptFactory, IGetDocumentReference getDocumentReference, IOutgoingCommandEnvelopeRouter commandEnvelopeRouter) { _inventoryAdjustmentNoteFactory = inventoryAdjustmentNoteFactory; _inventoryAdjustmentNoteWfManager = inventoryAdjustmentNoteWfManager; _costCentreRepository = costCentreRepository; _invoiceFactory = invoiceFactory; _invoiceRepository = invoiceRepository; _invoiceWorkFlowManager = invoiceWorkFlowManager; _receiptWorkFlowManager = receiptWorkFlowManager; _receiptFactory = receiptFactory; _getDocumentReference = getDocumentReference; _commandEnvelopeRouter = commandEnvelopeRouter; _notifyService = notifyService; }
public FCLImportOrderWorkFlow(IInvoiceRepository invoiceRepository, IOutgoingDocumentCommandRouter commandRouter, InventoryTransferNoteFactory inventoryTransferNoteFactory, IConfigService configService, IConfirmInventoryTransferNoteWFManager inventoryTransferNoteWfManager, ICostCentreRepository costCentreRepository, IDispatchNoteFactory dispatchNoteFactory, IConfirmDispatchNoteWFManager dispatchNoteWfManager, IInvoiceFactory invoiceFactory, IConfirmInvoiceWorkFlowManager invoiceWorkFlowManager, IGetDocumentReference getDocumentReference, IReceiptWorkFlowManager receiptWorkFlowManager, IReceiptFactory receiptFactory, ICreditNoteFactory creditNoteFactory, IConfirmCreditNoteWFManager confirmCreditNoteWfManager) { _commandRouter = commandRouter; _inventoryTransferNoteFactory = inventoryTransferNoteFactory; _configService = configService; _inventoryTransferNoteWfManager = inventoryTransferNoteWfManager; _costCentreRepository = costCentreRepository; _dispatchNoteFactory = dispatchNoteFactory; _dispatchNoteWfManager = dispatchNoteWfManager; _invoiceFactory = invoiceFactory; _invoiceWorkFlowManager = invoiceWorkFlowManager; _getDocumentReference = getDocumentReference; _receiptWorkFlowManager = receiptWorkFlowManager; _receiptFactory = receiptFactory; _creditNoteFactory = creditNoteFactory; _confirmCreditNoteWFManager = confirmCreditNoteWfManager; _invoiceRepository = invoiceRepository; }
public InvoiceApplicationService(IInvoiceRepository invoiceRepository, IUnitOfWorkScope unitOfWorkScope, // IGoodPartyAssignmentDomainService goodPartyAssignmentDomainService, //IUserRepository userRepository, IVesselInCompanyDomainService vesselDomainService, IGoodDomainService goodDomainService, IInvoiceFactory invoiceFactory, ICompanyDomainService companyDomainService, IInvoiceDomainService invoiceDomainService, IInvoiceItemDomainService invoiceItemDomainService, IEffectiveFactorDomainService effectiveFactorDomainService, ICompanyRepository companyRepository //,IApprovableDomainService approvableDomainService , IOrderRepository orderRepository, IGoodRepository goodRepository, ICurrencyDomainService currencyDomainService, IInvoiceAdditionalPriceDomainService invoiceAdditionalPriceDomainService, IGoodUnitConvertorDomainService goodUnitConvertorDomainService, IBalanceDomainService balanceDomainService, IEntityConfigurator<Invoice> invoiceConfigurator) { this.invoiceRepository = invoiceRepository; this.vesselDomainService = vesselDomainService; this.goodDomainService = goodDomainService; this.invoiceFactory = invoiceFactory; this.unitOfWorkScope = unitOfWorkScope; this.companyDomainService = companyDomainService; this.invoiceDomainService = invoiceDomainService; this.invoiceItemDomainService = invoiceItemDomainService; this.effectiveFactorDomainService = effectiveFactorDomainService; this.companyRepository = companyRepository; this.orderRepository = orderRepository; this.goodRepository = goodRepository; this.currencyDomainService = currencyDomainService; this.invoiceAdditionalPriceDomainService = invoiceAdditionalPriceDomainService; this.goodUnitConvertorDomainService = goodUnitConvertorDomainService; this.balanceDomainService = balanceDomainService; this.invoiceConfigurator = invoiceConfigurator; // _approvableDomainService = approvableDomainService; // _goodPartyAssignmentDomainService = goodPartyAssignmentDomainService; }
public Server(IInvoiceFactory factory) { _factory = factory; }
public ScenarioTestHelper(ICostCentreRepository costCentreRepository, IUserRepository userRepository, IConfigService configService, IOutgoingCommandEnvelopeQueueRepository outgoingCommandEnvelopeQueueRepository, IInvoiceFactory invoiceFactory, IInvoiceRepository invoiceRepository, IConfirmInvoiceWorkFlowManager confirmInvoiceWorkFlowManager) { _costCentreRepository = costCentreRepository; _userRepository = userRepository; _configService = configService; _outgoingCommandEnvelopeQueueRepository = outgoingCommandEnvelopeQueueRepository; _invoiceFactory = invoiceFactory; _invoiceRepository = invoiceRepository; _confirmInvoiceWorkFlowManager = confirmInvoiceWorkFlowManager; }
public InvoiceGenerator(IVatFinder vatFinder, IInvoiceFactory invoiceFactory) { _vatFinder = vatFinder ?? throw new ArgumentNullException(nameof(vatFinder)); _invoiceFactory = invoiceFactory ?? throw new ArgumentNullException(nameof(invoiceFactory)); }
public ScenarioTestHelperLocal(ICostCentreRepository costCentreRepository, IUserRepository userRepository, IConfigService configService, IInvoiceFactory invoiceFactory, IInvoiceRepository invoiceRepository, IConfirmInvoiceWorkFlowManager confirmInvoiceWorkFlowManager,ISendPendingEnvelopeCommandsService sendPendingEnvelopeCommandsService) { _costCentreRepository = costCentreRepository; _userRepository = userRepository; _configService = configService; _invoiceFactory = invoiceFactory; _invoiceRepository = invoiceRepository; _confirmInvoiceWorkFlowManager = confirmInvoiceWorkFlowManager; _sendPendingEnvelopeCommandsService = sendPendingEnvelopeCommandsService; }
/// <summary> /// Constuctor /// </summary> /// <param name="workDAC"></param> /// <param name="invoiceFactory"></param> public WorkBC(IWorkDAC workDAC, IInvoiceFactory invoiceFactory) { this._workDAC = workDAC; this._invoiceFactory = invoiceFactory; }
public InvoiceService(IAppUnitOfWork uow, IInvoiceFactory invoiceFactory) { _uow = uow; _invoiceFactory = invoiceFactory; }