Пример #1
0
        public VifFileInfo(CreateValueInstructionFileRequest requestValue, IEnumerable<VoucherInformation> voucherInfos)
        {
            request = requestValue;
            VoucherInfos = voucherInfos;

            vBankCode = request.entity;
            vBundletype = VifConstants.BundleType;
            vCaptureBSB = request.captureBsb;
            vCollectingBSB = request.collectingBsb;
            vProcessDate = request.businessDate;
            vSequenceNumber = request.sequenceNumber.ToString();
            vRecordTypeCode = request.recordTypeCode;
            vState = request.state.ToString();
            vTotalCreditAmount = 0;
            vTotalDebitAmount = 0;
            vTotalCreditCount = 0;
            vTotalDebitCount = 0;
            vQueryLinkType = requestValue.queryLinkType.ToString();
        }
Пример #2
0
        public VifRequestProcessorTests()
        {
            message = new CreateValueInstructionFileRequest
            {
                jobIdentifier = "neod-3f94ff54-1993-4676-853f-b7f0befed24h",
                sequenceNumber = 8356,
                state = 3,
                businessDate = new System.DateTime(2015, 05, 20, 00, 00, 00, 000),
                captureBsb = "083029",
                entity = "NAB",
                collectingBsb = "082037",
                recordTypeCode = GetRecordTypeValue()
            };

            vifFileInfo = new VifFileInfo(message, new List<VoucherInformation>());
            publisher = new Mock<IExchangePublisher<CreateValueInstructionFileResponse>>();
            requestSplitter = new Mock<IRequestSplitter>();
            requestConverter = new Mock<IRequestConverter>();
            fileWriter = new Mock<IFileWriter>();
            pathHelper = new Mock<IPathHelper>();
            vifGenerator = new Mock<IVifGenerator>();
            validationResult = new List<ValidationResult>();
        }
Пример #3
0
 public static void Publish(CreateValueInstructionFileRequest request)
 {
     Requests.Add(request);
     
     Task.WaitAll(RequestPublisher.PublishAsync(request, null, "NVIF"));
 }