public ValidateBatchCodelineRequestToDipsDbIndexMapper(
     IBatchCodelineRequestMapHelper batchCodelineRequestMapHelper)
 {
     this.batchCodelineRequestMapHelper = batchCodelineRequestMapHelper;
 }
コード例 #2
0
 public CorrectBatchCodelineRequestToDipsNabChqScanPodMapper(
     IBatchCodelineRequestMapHelper batchCodelineRequestMapHelper)
 {
     this.batchCodelineRequestMapHelper = batchCodelineRequestMapHelper;
 }
コード例 #3
0
        public void TestInitialize()
        {
            adapterConfiguration = new Mock<IAdapterConfiguration>();
            dateTimeProvider = new Mock<IDateTimeProvider>();

            dipsBatchMapHelper = new BatchCodelineRequestMapHelper(dateTimeProvider.Object,
                adapterConfiguration.Object);

            sampleValidateBatchCodelineRequest = new ValidateBatchCodelineRequest
            {
                voucherBatch = new VoucherBatch
                {
                    scannedBatchNumber = "58300013",
                    workType = WorkTypeEnum.NABCHQ_POD,
                    processingState = StateEnum.VIC,
                    collectingBank = "123456",
                    unitID = "123",
                    batchType = "testing",
                    subBatchType = "tst123",
                },
                voucher = new[]
                {
                    new ValidateCodelineRequest
                    {
                        auxDom = "001193",
                        bsbNumber ="013812",
                        accountNumber="256902729",
                        transactionCode ="50",
                        documentReferenceNumber = "583000026",
                        capturedAmount = "45.67",
                        documentType = DocumentTypeEnum.DBT,
                        processingDate = new DateTime(2015, 4, 16, 14, 14, 14),
                    },
                    new ValidateCodelineRequest
                    {
                        auxDom = "001193",
                        bsbNumber ="092002",
                        accountNumber="814649",
                        transactionCode ="50",
                        documentReferenceNumber = "583000027",
                        capturedAmount = "2341.45",
                        documentType = DocumentTypeEnum.CRT,
                        processingDate = new DateTime(2015, 4, 16, 14, 14, 14)
                    } 
                }
            };

            sampleDipsQueue = new DipsQueue
            {
                ConcurrencyToken = null,
                CorrelationId = null,
                ResponseCompleted = false,
                S_BATCH = "58300013",
                S_CLIENT = "NabChq                                                                          ",
                S_COMPLETE = "    0",
                S_IMG_PATH = "C:\\Lombard\\Data\\ClientImages\\58300                                              ",
                S_JOB_ID = "NabChqPod                                                                                                                       ",
                S_LOCATION = "CodelineValidation               ",
                S_LOCK = "         0",
                S_LOCKMACHINENAME = "                 ",
                S_LOCKMODULENAME = "                 ",
                S_LOCKTIME = "          ",
                S_LOCKUNITID = "          ",
                S_LOCKUSER = "******",
                S_MODIFIED = "    0",
                S_PINDEX = "05-1504161414140",
                S_PRIORITY = "    5",
                S_PROCDATE = "         ",
                S_REPORTED = "     ",
                S_SDATE = "16/04/15",
                S_SELNSTRING = "16/04/15 58300013 NabChqPod                                                                                                     ",
                S_STIME = "14:14:14",
                S_TRACE = "583000026",
                S_USERNAME = null,
                S_UTIME = "          ",
                S_VERSION = "4.0.2.152                       "
            };

            sampleDipsNabChqs = new List<DipsNabChq>
            {
                new DipsNabChq
                {			
                    acc_num=	"256902729"	,
		            adj_code=	"  "	,
		            adj_desc=	"                              "	,
                    adjustmentReasonCode = "  ",
                    adjustmentDescription = "                                                            ",
                    adjustedBy = "               ",
                    adjustedFlag = " ",
                    adjustmentLetterRequired = " ",
                    adjustmentType = "         ",
		            amount=	"45.67"	,
		            batch=	"58300013"	,
		            batch_type	="testing"	,
		            bsb_num	="013812"	,
		            collecting_bank	="123456"	,
		            delay_ind=	" "	,
		            doc_ref_num	="583000026"	,
		            doc_type	="DBT"	,
		            ead	=" "	,
		            fv_exchange	=" "	,
		            fv_ind	=" "	,
		            held_ind=	" "	,
		            host_trans_no=	"   "	,
		            ie_transaction_id=	"            "	,
		            img_front=	"        "	,
		            img_location=	"                                                                                "	,
		            img_rear	="        "	,
		            job_id	="NabChqPod      "	,
		            man_rep_ind	=""	,
		            manual_repair	="     "	,
		            micr_flag	=" "	,
		            micr_suspect_fraud_flag	=" "	,
		            micr_unproc_flag	=" "	,
		            op_id	="               "	,
		            @override=	"     "	,
		            payee_name=	"                                                                                                                                                                                                                                                "	,
		            pocket=	" 0"	,
                    presentationMode = " ",
		            proc_date=	"20150416"	,
		            proc_time=	"    "	,
		            processing_state=	"VIC"	,
		            proof_seq=	"            "	,
		            raw_micr=	"                                                                "	,
		            raw_ocr=	"                                                                "	,
		            rec_type_id=	"    "	,
		            receiving_bank=	"   "	,
                    repostFromDRN="",
                    repostFromProcessingDate="00010101",
		            S_BALANCE=	"     0"	,
		            S_BATCH=	"58300013"	,
		            S_COMMITTED	="    0"	,
		            S_COMPLETE	="    0"	,
		            S_DEL_IND=	"    0"	,
		            S_IMG1_LEN	="        0"	,
		            S_IMG1_OFF	="        0"	,
		            S_IMG1_TYP	="    0"	,
		            S_IMG2_LEN	="        0"	,
		            S_IMG2_OFF	="        0"	,
		            S_IMG2_TYP	="    0"	,
		            S_LENGTH	="01025"	,
		            S_MODIFIED	="    0"	,
		            S_REPORTED	="    0"	,
		            S_REPROCESS	="    0"	,
		            S_SEQUENCE	="0000 "	,
		            S_STATUS1	="        0"	,
		            S_STATUS2	="        0"	,
		            S_STATUS3	="        0"	,
		            S_STATUS4	="        0"	,
		            S_TRACE=	"583000026"	,
		            S_TYPE	="    0"	,
		            ser_num	="001193"	,
		            sub_batch_type	="tst123"	,
		            sys_date=	"20150416"	,
		            trace=	"583000026"	,
		            trancode	="50"	,
		            trans_seq=	"     "	,
		            unit_id	="123"	,
		            volume=	"        "	,
                    creditNoteFlag="0"
                },
                new DipsNabChq
                {
		            acc_num	="814649"	,
		            adj_code	="  "	,
		            adj_desc=	"                              "	,
                    adjustmentReasonCode = "  ",
                    adjustmentDescription = "                                                            ",
                    adjustedBy = "               ",
                    adjustedFlag = " ",
                    adjustmentLetterRequired = " ",
                    adjustmentType = "         ",
		            amount	="2341.45"	,
		            batch	="58300013"	,
		            batch_type	="testing"	,
		            bsb_num=	"092002"	,
		            collecting_bank	="123456"	,
		            delay_ind=	" "	,
		            doc_ref_num	="583000027"	,
		            doc_type=	"CRT"	,
		            ead	=" "	,
		            fv_exchange	=" "	,
		            fv_ind=	" "	,
		            held_ind=	" "	,
		            host_trans_no=	"   "	,
		            ie_transaction_id=	"            "	,
		            img_front=	"        "	,
		            img_location=	"                                                                                "	,
		            img_rear=	"        "	,
		            job_id=	"NabChqPod      "	,
		            man_rep_ind=	""	,
		            manual_repair=	"     "	,
		            micr_flag=	" "	,
		            micr_suspect_fraud_flag	=" "	,
		            micr_unproc_flag=	" "	,
		            op_id=	"               "	,
		            @override	="     "	,
		            payee_name=	"                                                                                                                                                                                                                                                "	,
		            pocket	=" 0"	,
                    presentationMode = " ",
		            proc_date	="20150416"	,
		            proc_time	="    "	,
		            processing_state=	"VIC"	,
		            proof_seq=	"            "	,
		            raw_micr=	"                                                                "	,
		            raw_ocr	="                                                                "	,
		            rec_type_id	="    "	,
		            receiving_bank=	"   "	,
                    repostFromDRN="",
                    repostFromProcessingDate="00010101",
		            S_BALANCE	="     0"	,
		            S_BATCH=	"58300013"	,
		            S_COMMITTED	="    0"	,
		            S_COMPLETE	="    0"	,
		            S_DEL_IND	="    0"	,
		            S_IMG1_LEN	="        0"	,
		            S_IMG1_OFF	="        0"	,
		            S_IMG1_TYP	="    0"	,
		            S_IMG2_LEN	="        0"	,
		            S_IMG2_OFF	="        0"	,
		            S_IMG2_TYP	="    0"	,
		            S_LENGTH	="01025"	,
		            S_MODIFIED	="    0"	,
		            S_REPORTED	="    0"	,
		            S_REPROCESS	="    0"	,
		            S_SEQUENCE	="0000 "	,
		            S_STATUS1	="        0"	,
		            S_STATUS2	="        0"	,
		            S_STATUS3	="        0"	,
		            S_STATUS4	="        0"	,
		            S_TRACE=	"583000027"	,
		            S_TYPE	="    0"	,
		            ser_num	="001193"	,
		            sub_batch_type=	"tst123"	,
		            sys_date	="20150416"	,
		            trace=	"583000027"	,
		            trancode=	"50"	,
		            trans_seq=	"     "	,
		            unit_id	="123"	,
		            volume	="        "	,
                    creditNoteFlag="0"
                }
            };

            sampleDipsDbIndexes = new List<DipsDbIndex>
            {
                new DipsDbIndex
                {
		            BATCH=	"58300013"	,
		            DEL_IND=	"    0"	,
		            REC_NO	="0         "	,
		            SEQUENCE	="0000 "	,
		            TABLE_NO=	"    0"	,
		            TRACE=	"583000026"
                },
                new DipsDbIndex
                {
		            BATCH =	"58300013"	,
		            DEL_IND=	"    0"	,
		            REC_NO	="0         "	,
		            SEQUENCE	="0000 "	,
		            TABLE_NO=	"    0"	,
		            TRACE=	"583000027"
                }
            };

            ExpectAdapterConfigurationToReturnValues("5", "4.0.2.152", @"C:\Lombard\Data\ClientImages");
            ExpectDateTimeProviderToReturnCurrentTimeInAustralianEasternTimeZone(new DateTime(2015, 4, 16, 14, 14, 14));
        }
コード例 #4
0
        public void TestInitialize()
        {
            adapterConfiguration = new Mock <IAdapterConfiguration>();
            dateTimeProvider     = new Mock <IDateTimeProvider>();

            dipsBatchMapHelper = new BatchCodelineRequestMapHelper(dateTimeProvider.Object,
                                                                   adapterConfiguration.Object);

            sampleValidateBatchCodelineRequest = new ValidateBatchCodelineRequest
            {
                voucherBatch = new VoucherBatch
                {
                    scannedBatchNumber = "58300013",
                    workType           = WorkTypeEnum.NABCHQ_POD,
                    processingState    = StateEnum.VIC,
                    collectingBank     = "123456",
                    unitID             = "123",
                    batchType          = "testing",
                    subBatchType       = "tst123",
                },
                voucher = new[]
                {
                    new ValidateCodelineRequest
                    {
                        auxDom                  = "001193",
                        bsbNumber               = "013812",
                        accountNumber           = "256902729",
                        transactionCode         = "50",
                        documentReferenceNumber = "583000026",
                        capturedAmount          = "45.67",
                        documentType            = DocumentTypeEnum.DBT,
                        processingDate          = new DateTime(2015, 4, 16, 14, 14, 14),
                    },
                    new ValidateCodelineRequest
                    {
                        auxDom                  = "001193",
                        bsbNumber               = "092002",
                        accountNumber           = "814649",
                        transactionCode         = "50",
                        documentReferenceNumber = "583000027",
                        capturedAmount          = "2341.45",
                        documentType            = DocumentTypeEnum.CRT,
                        processingDate          = new DateTime(2015, 4, 16, 14, 14, 14)
                    }
                }
            };

            sampleDipsQueue = new DipsQueue
            {
                ConcurrencyToken  = null,
                CorrelationId     = null,
                ResponseCompleted = false,
                S_BATCH           = "58300013",
                S_CLIENT          = "NabChq                                                                          ",
                S_COMPLETE        = "    0",
                S_IMG_PATH        = "C:\\Lombard\\Data\\ClientImages\\58300                                              ",
                S_JOB_ID          = "NabChqPod                                                                                                                       ",
                S_LOCATION        = "CodelineValidation               ",
                S_LOCK            = "         0",
                S_LOCKMACHINENAME = "                 ",
                S_LOCKMODULENAME  = "                 ",
                S_LOCKTIME        = "          ",
                S_LOCKUNITID      = "          ",
                S_LOCKUSER        = "******",
                S_MODIFIED        = "    0",
                S_PINDEX          = "05-1504161414140",
                S_PRIORITY        = "    5",
                S_PROCDATE        = "         ",
                S_REPORTED        = "     ",
                S_SDATE           = "16/04/15",
                S_SELNSTRING      = "16/04/15 58300013 NabChqPod                                                                                                     ",
                S_STIME           = "14:14:14",
                S_TRACE           = "583000026",
                S_USERNAME        = null,
                S_UTIME           = "          ",
                S_VERSION         = "4.0.2.152                       "
            };

            sampleDipsNabChqs = new List <DipsNabChq>
            {
                new DipsNabChq
                {
                    acc_num                  = "256902729",
                    adj_code                 = "  ",
                    adj_desc                 = "                              ",
                    adjustmentReasonCode     = "  ",
                    adjustmentDescription    = "                                                            ",
                    adjustedBy               = "               ",
                    adjustedFlag             = " ",
                    adjustmentLetterRequired = " ",
                    adjustmentType           = "         ",
                    amount                   = "45.67",
                    batch                    = "58300013",
                    batch_type               = "testing",
                    bsb_num                  = "013812",
                    collecting_bank          = "123456",
                    delay_ind                = " ",
                    doc_ref_num              = "583000026",
                    doc_type                 = "DBT",
                    ead                      = " ",
                    fv_exchange              = " ",
                    fv_ind                   = " ",
                    held_ind                 = " ",
                    host_trans_no            = "   ",
                    ie_transaction_id        = "            ",
                    img_front                = "        ",
                    img_location             = "                                                                                ",
                    img_rear                 = "        ",
                    job_id                   = "NabChqPod      ",
                    man_rep_ind              = "",
                    manual_repair            = "     ",
                    micr_flag                = " ",
                    micr_suspect_fraud_flag  = " ",
                    micr_unproc_flag         = " ",
                    op_id                    = "               ",
                    @override                = "     ",
                    payee_name               = "                                                                                                                                                                                                                                                ",
                    pocket                   = " 0",
                    presentationMode         = " ",
                    proc_date                = "20150416",
                    proc_time                = "    ",
                    processing_state         = "VIC",
                    proof_seq                = "            ",
                    raw_micr                 = "                                                                ",
                    raw_ocr                  = "                                                                ",
                    rec_type_id              = "    ",
                    receiving_bank           = "   ",
                    repostFromDRN            = "",
                    repostFromProcessingDate = "00010101",
                    S_BALANCE                = "     0",
                    S_BATCH                  = "58300013",
                    S_COMMITTED              = "    0",
                    S_COMPLETE               = "    0",
                    S_DEL_IND                = "    0",
                    S_IMG1_LEN               = "        0",
                    S_IMG1_OFF               = "        0",
                    S_IMG1_TYP               = "    0",
                    S_IMG2_LEN               = "        0",
                    S_IMG2_OFF               = "        0",
                    S_IMG2_TYP               = "    0",
                    S_LENGTH                 = "01025",
                    S_MODIFIED               = "    0",
                    S_REPORTED               = "    0",
                    S_REPROCESS              = "    0",
                    S_SEQUENCE               = "0000 ",
                    S_STATUS1                = "        0",
                    S_STATUS2                = "        0",
                    S_STATUS3                = "        0",
                    S_STATUS4                = "        0",
                    S_TRACE                  = "583000026",
                    S_TYPE                   = "    0",
                    ser_num                  = "001193",
                    sub_batch_type           = "tst123",
                    sys_date                 = "20150416",
                    trace                    = "583000026",
                    trancode                 = "50",
                    trans_seq                = "     ",
                    unit_id                  = "123",
                    volume                   = "        ",
                    creditNoteFlag           = "0"
                },
                new DipsNabChq
                {
                    acc_num                  = "814649",
                    adj_code                 = "  ",
                    adj_desc                 = "                              ",
                    adjustmentReasonCode     = "  ",
                    adjustmentDescription    = "                                                            ",
                    adjustedBy               = "               ",
                    adjustedFlag             = " ",
                    adjustmentLetterRequired = " ",
                    adjustmentType           = "         ",
                    amount                   = "2341.45",
                    batch                    = "58300013",
                    batch_type               = "testing",
                    bsb_num                  = "092002",
                    collecting_bank          = "123456",
                    delay_ind                = " ",
                    doc_ref_num              = "583000027",
                    doc_type                 = "CRT",
                    ead                      = " ",
                    fv_exchange              = " ",
                    fv_ind                   = " ",
                    held_ind                 = " ",
                    host_trans_no            = "   ",
                    ie_transaction_id        = "            ",
                    img_front                = "        ",
                    img_location             = "                                                                                ",
                    img_rear                 = "        ",
                    job_id                   = "NabChqPod      ",
                    man_rep_ind              = "",
                    manual_repair            = "     ",
                    micr_flag                = " ",
                    micr_suspect_fraud_flag  = " ",
                    micr_unproc_flag         = " ",
                    op_id                    = "               ",
                    @override                = "     ",
                    payee_name               = "                                                                                                                                                                                                                                                ",
                    pocket                   = " 0",
                    presentationMode         = " ",
                    proc_date                = "20150416",
                    proc_time                = "    ",
                    processing_state         = "VIC",
                    proof_seq                = "            ",
                    raw_micr                 = "                                                                ",
                    raw_ocr                  = "                                                                ",
                    rec_type_id              = "    ",
                    receiving_bank           = "   ",
                    repostFromDRN            = "",
                    repostFromProcessingDate = "00010101",
                    S_BALANCE                = "     0",
                    S_BATCH                  = "58300013",
                    S_COMMITTED              = "    0",
                    S_COMPLETE               = "    0",
                    S_DEL_IND                = "    0",
                    S_IMG1_LEN               = "        0",
                    S_IMG1_OFF               = "        0",
                    S_IMG1_TYP               = "    0",
                    S_IMG2_LEN               = "        0",
                    S_IMG2_OFF               = "        0",
                    S_IMG2_TYP               = "    0",
                    S_LENGTH                 = "01025",
                    S_MODIFIED               = "    0",
                    S_REPORTED               = "    0",
                    S_REPROCESS              = "    0",
                    S_SEQUENCE               = "0000 ",
                    S_STATUS1                = "        0",
                    S_STATUS2                = "        0",
                    S_STATUS3                = "        0",
                    S_STATUS4                = "        0",
                    S_TRACE                  = "583000027",
                    S_TYPE                   = "    0",
                    ser_num                  = "001193",
                    sub_batch_type           = "tst123",
                    sys_date                 = "20150416",
                    trace                    = "583000027",
                    trancode                 = "50",
                    trans_seq                = "     ",
                    unit_id                  = "123",
                    volume                   = "        ",
                    creditNoteFlag           = "0"
                }
            };

            sampleDipsDbIndexes = new List <DipsDbIndex>
            {
                new DipsDbIndex
                {
                    BATCH    = "58300013",
                    DEL_IND  = "    0",
                    REC_NO   = "0         ",
                    SEQUENCE = "0000 ",
                    TABLE_NO = "    0",
                    TRACE    = "583000026"
                },
                new DipsDbIndex
                {
                    BATCH    = "58300013",
                    DEL_IND  = "    0",
                    REC_NO   = "0         ",
                    SEQUENCE = "0000 ",
                    TABLE_NO = "    0",
                    TRACE    = "583000027"
                }
            };

            ExpectAdapterConfigurationToReturnValues("5", "4.0.2.152", @"C:\Lombard\Data\ClientImages");
            ExpectDateTimeProviderToReturnCurrentTimeInAustralianEasternTimeZone(new DateTime(2015, 4, 16, 14, 14, 14));
        }
コード例 #5
0
 public CorrectBatchCodelineRequestToDipsQueueMapper(
     IBatchCodelineRequestMapHelper batchCodelineRequestMapHelper)
 {
     this.batchCodelineRequestMapHelper = batchCodelineRequestMapHelper;
 }
コード例 #6
0
 public ValidateBatchCodelineRequestToDipsNabChqScanPodMapper(
     IBatchCodelineRequestMapHelper batchCodelineRequestMapHelper)
 {
     this.batchCodelineRequestMapHelper = batchCodelineRequestMapHelper;
 }