コード例 #1
0
        public async void AdditionalPreminumEndorsementUnitTest()
        {
            AdditionalPreminumArgs additionalPreminumArgs = new AdditionalPreminumArgs()
            {
                insuredId        = "DEMOACCOUNT",
                insuredName1     = "JOHN",
                aisAccountNumber = "98000001",
                note1            = "SAMPLE NOTE 01",
                note2            = "SAMPLE NOTE 02"
            };
            AdditionalPreminum_policy additionalPreminum_Policy = new AdditionalPreminum_policy()
            {
                policyNumber        = "TESTPFPOLICY0001",
                policyInceptionDate = "10012018",
                policyTerm          = "12",
                policyInsuranceCompanyCrossReference = "XY",
                policyInsuranceCompanyNumber         = "6688",
                policyCoverageTypeCode           = "18",
                policyPremiumAmount              = "1000.00",
                policyPremiumDownpay             = "100.00",
                policyUnpaidPremiumAmount        = "900.00",
                policyCommissionAmount           = "0.00",
                policyCommissionPercentage       = "0.000",
                policyCommissionRetainFlag       = "N",
                policyFee1Type                   = "T",
                policyFee1Description            = "TAXES",
                policyFee1Amount                 = "50.00",
                policyFee1AmountDownpay          = "50.00",
                policyFee2Type                   = "F",
                policyFee1UnpaidAmount           = "0.00",
                policyFee2Description            = "FEES",
                policyFee2Amount                 = "100.00",
                policyFee2AmountDownpay          = "100.00",
                policyFee2UnpaidAmount           = "0.00",
                policyFee3Amount                 = "0.00",
                policyFee3AmountDownpay          = "0.00",
                policyFee3UnpaidAmount           = "0.00",
                policyFee4Amount                 = "0.00",
                policyFee4AmountDownpay          = "0.00",
                policyFee4UnpaidAmount           = "0.00",
                policyFilingFlag                 = "N",
                policyFilingDays                 = "0",
                policyInsuranceCompanyName       = " ",
                policyInsuranceCompanyCO         = " ",
                policyCoverageTypeCrossReference = " ",
                policyFee3Type                   = " ",
                policyFee3Description            = " ",
                policyFee4Type                   = " ",
                policyFee4Description            = " "
            };

            additionalPreminumArgs.policies = new List <AdditionalPreminum_policy>()
            {
                additionalPreminum_Policy
            };
            HttpClientBase <AdditionalPreminum_policy> httpClientBase = new HttpClientBase <AdditionalPreminum_policy>();
            var result = await httpClientBase.AdditionalPreminum(additionalPreminumArgs);

            Assert.NotNull(result);
        }