Exemplo n.º 1
0
        public async void AddPreminumFinanceUnitTest()
        {
            AddPreminumFinanceArgs addPreminumFinanceArgs = new AddPreminumFinanceArgs()
            {
                insured = new AddPreminumFinance_insured()
                {
                    insuredId          = " ",
                    insuredName1       = "JOHN",
                    insuredName2       = "SMITH",
                    insuredAddress1    = "123 Main Street",
                    insuredAddress2    = "Apt A",
                    insuredCity        = "St. Louis",
                    insuredState       = "MO",
                    insuredZip         = "63141",
                    insuredPhoneNumber = "3145760007",
                    insuredEmail       = "*****@*****.**"
                },
                agent = new AddPreminumFinance_agent()
                {
                    agentCodeCrossReference = " ",
                    agentName = " ",
                    agentCode = "040000"
                },
                account = new AddPreminumFinance_account()
                {
                    brokerFeeAddonFlag         = " ",
                    billingType                = " ",
                    accountType                = "C",
                    totalPremiumAmount         = "2150.00",
                    totalDownPayAmount         = "650.00",
                    amountFinanced             = "1500.00",
                    calculateFinanceChargeFlag = "N",
                    financeCharge              = "185.40",
                    totalOfPayments            = "1685.40",
                    quarterlyPaymentFlag       = "N",
                    paymentTerm                = "9",
                    paymentAmount              = "187.27",
                    firstPaymentDate           = "11012018",
                    originalAPR                = "28.76",
                    currentAPR           = "28.76",
                    quoteUser            = "******",
                    brokerFeeAddonAmount = "0.00",
                    policyBrokerFees     = "0.00",
                    floridaAccountFlag   = "N",
                    stampTax             = "0.00",
                    quoteNumber          = "0",
                    billingFee           = "0.00"
                }
            };

            List <AddPreminumFinance_policy> policys = new List <AddPreminumFinance_policy>()
            {
            };

            policys.Add(new AddPreminumFinance_policy()
            {
                policyNumber        = "TESTQ02POLICY0001",
                policyInceptionDate = "10012018",
                policyTerm          = 12,
                policyInsuranceCompanyCrossReference = "",
                policyCoverageTypeCrossReference     = "",
                policyFee3Type               = "",
                policyFee3Description        = "",
                policyFee4Type               = "",
                policyFee4Description        = "",
                policyInsuranceCompanyNumber = "6688",
                policyCoverageTypeCode       = "18",
                policyPremiumAmount          = "2000.00",
                policyPremiumDownpay         = "500.00",
                policyFee1Type               = "T",
                policyFee1Description        = "TAXES",
                policyFee1Amount             = "50.00",
                policyFee1AmountDownpay      = "50.00",
                policyFee2Type               = "F",
                policyFee2Description        = "FEES",
                policyFee2Amount             = "100.00",
                policyFee2AmountDownpay      = "100.00",
                policyFee3Amount             = "0.00",
                policyFee3AmountDownpay      = "0.00",
                policyFee4Amount             = "0.00",
                policyFee4AmountDownpay      = "0.00",
                policyFilingFlag             = "N",
                policyFilingDays             = "0"
            });

            addPreminumFinanceArgs.policies = policys;
            HttpClientBase <AddPreminumFinance_policy> httpClientBase = new HttpClientBase <AddPreminumFinance_policy>();
            var result = await httpClientBase.AddPreminumFinance(addPreminumFinanceArgs);

            Assert.NotNull(result);
        }