public VoucherInformationBuilder() { this.voucher = new VoucherBuilder().Build(); this.voucherProcess = new VoucherProcessBuilder().Build(); }
private VoucherInformation GetTestData_VoucherInfo() { var voucher = new Voucher { documentReferenceNumber = "04114", bsbNumber = "082401", auxDom = string.Empty, accountNumber = "813208132", amount = "419.38", documentType = DocumentTypeEnum.Dr, transactionCode = "01", processingDate = new DateTime(2015, 01, 01) }; var voucherProcess = new VoucherProcess { adjustedFlag = true, adjustmentDescription = "test description", adjustmentReasonCode = 00, transactionLinkNumber = "9000001" }; var voucherBatch = new VoucherBatch { scannedBatchNumber = "67500125", collectingBank = "082401" }; var voucherInfo = new VoucherInformation { voucher = voucher, voucherProcess = voucherProcess, voucherBatch = voucherBatch }; return voucherInfo; }
public VoucherInformationBuilder WithVoucherProcess(VoucherProcess voucherProcess) { this.voucherProcess = voucherProcess; return this; }