public APInvoiceGAFRecordsCreator(IGAFRepository gafRepository,
                                   PurchaseRecordBuilderByInvoiceTran purchaseRecordBuilderByInvoiceTran,
                                   PurchaseRecordBuilderByTaxTranFromTaxDocument purchaseRrcordBuilderByTaxTranFromTaxDocument,
                                   PurchaseRecordBuilderByAPInvoiceTaxTranForTaxCalcedOnDocumentAmt recordBuilderByTaxTranForTaxCalcedOnDocumentAmt)
     : base(gafRepository)
 {
     _purchaseRecordBuilderByInvoiceTran              = purchaseRecordBuilderByInvoiceTran;
     _purchaseRrcordBuilderByTaxTranFromTaxDocument   = purchaseRrcordBuilderByTaxTranFromTaxDocument;
     _recordBuilderByTaxTranForTaxCalcedOnDocumentAmt = recordBuilderByTaxTranForTaxCalcedOnDocumentAmt;
 }
Пример #2
0
        public APInvoiceGAFRecordsCreatorTests()
        {
            var recordBuilderByVendorData             = new PurchaseRecordBuilderByVendorData(GAFRepository);
            var recordBuilderByRegister               = new GafRecordBuilderByRegister(GAFRepository);
            var recordBuilderByInvoiceTran            = new PurchaseRecordBuilderByInvoiceTran(GAFRepository, recordBuilderByVendorData, recordBuilderByRegister);
            var recordBuilderByTaxTranFromTaxDocument = new PurchaseRecordBuilderByTaxTranFromTaxDocument(GAFRepository,
                                                                                                          recordBuilderByVendorData, recordBuilderByRegister);

            InvoiceGafRecordsCreator = new APInvoiceGAFRecordsCreator(GAFRepository, recordBuilderByInvoiceTran,
                                                                      recordBuilderByTaxTranFromTaxDocument,
                                                                      new PurchaseRecordBuilderByAPInvoiceTaxTranForTaxCalcedOnDocumentAmt(GAFRepository, recordBuilderByRegister,
                                                                                                                                           recordBuilderByVendorData));

            _apInvoiceAggregateBuilderFactory = GetService <APInvoiceAggregateBuilderFactory>();
        }