public void Test_CreateGAFRecordsForDocumentGroup_TaxTran_Amounts_Sign_For_Memo(string docType, decimal expectedSign) { //Arrange Func <ARInvoiceAggregate> getInvoiceAggregate = () => ArInvoiceAggregateBuilderFactory.CreateInvoiceAggregateBuilder(docType, withTax: true) .Build(); Test_CreateGAFRecordsForDocumentGroup_TaxTran_Amounts_Sign_For_Adjustments_And_Memos(getInvoiceAggregate, expectedSign); }
public void Test_CreateGAFRecordsForDocumentGroup_That_Discrepancy_Is_Compensated(decimal discrepancySign) { //Arrange Func <ARInvoiceAggregate> getInvoiceAggregate = () => { var taxDataItems = TaxDataBuilder.CreateTaxDataItems(new[] { TaxDataContext.VatTax.TaxID, TaxDataContext.VatTax2.TaxID }); return(ArInvoiceAggregateBuilderFactory.CreateInvoiceAggregateBuilder(ARDocType.Invoice, lineCount: 2, taxDataItems: taxDataItems) .Build()); }; Test_CreateGAFRecordsForDocumentGroup_That_Discrepancy_Is_Compensated(getInvoiceAggregate, discrepancySign); }