コード例 #1
0
        public void Setup()
        {
            _vatFinder      = Substitute.For <IVatFinder>();
            _invoiceFactory = Substitute.For <IInvoiceFactory>();

            _order = Substitute.For <IOrder>();
        }
コード例 #2
0
 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;
 }
コード例 #3
0
 public InvoiceDomainService(
     IBus bus,
     IInvoiceFactory invoiceFactory,
     IInvoiceIsValidForImportValidation invoiceIsValidForImportValidation,
     IInvoiceWasImportedEventFactory invoiceWasImportedEventFactory
     )
     : base(bus, invoiceFactory)
 {
     _invoiceIsValidForImportValidation = invoiceIsValidForImportValidation;
     _invoiceWasImportedEventFactory    = invoiceWasImportedEventFactory;
 }
コード例 #4
0
 public InvoicesController(IInvoicesCommand command,
                           IInvoicesQuery query,
                           IInvoiceFactory factory,
                           ISalesOrderQuery customerOrderQuery,
                           ILogger <InvoicesController> logger)
 {
     _command            = command;
     _query              = query;
     _factory            = factory;
     _customerOrderQuery = customerOrderQuery;
     _logger             = logger;
 }
コード例 #5
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;
        }
コード例 #6
0
 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;
 }
コード例 #7
0
 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;
 }
コード例 #8
0
        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;
        }
コード例 #9
0
 public Server(IInvoiceFactory factory)
 {
     _factory = factory;
 }
コード例 #10
0
 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;
 }
コード例 #11
0
ファイル: InvoiceGenerator.cs プロジェクト: JRUmaras/Invoicer
 public InvoiceGenerator(IVatFinder vatFinder, IInvoiceFactory invoiceFactory)
 {
     _vatFinder      = vatFinder ?? throw new ArgumentNullException(nameof(vatFinder));
     _invoiceFactory = invoiceFactory ?? throw new ArgumentNullException(nameof(invoiceFactory));
 }
コード例 #12
0
 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;
 }
コード例 #13
0
 /// <summary>
 /// Constuctor
 /// </summary>
 /// <param name="workDAC"></param>
 /// <param name="invoiceFactory"></param>
 public WorkBC(IWorkDAC workDAC, IInvoiceFactory invoiceFactory)
 {
     this._workDAC        = workDAC;
     this._invoiceFactory = invoiceFactory;
 }
コード例 #14
0
 public InvoiceService(IAppUnitOfWork uow, IInvoiceFactory invoiceFactory)
 {
     _uow            = uow;
     _invoiceFactory = invoiceFactory;
 }