public async void NewBillingAccountSetupUnitTest() { NewBillingAccountSetupCommand newBillingArgs = new NewBillingAccountSetupCommand() { Insured = new NewBilling_insured() { InsuredCANumber = " ", InsuredMCNumber = " ", AisAccountNumber = " ", InsuredId = "DEMOACCOUNT", InsuredName1 = "JOHN", InsuredName2 = "SMITH", InsuredAddress1 = "123 Main Street", InsuredAddress2 = "Apt A", InsuredCity = "St. Louis", InsuredState = "MO", InsuredZip = "63141", InsuredPhoneNumber = "3145760007", InsuredFaxNumber = "3148787843", InsuredEmail = "*****@*****.**", InsuredCellPhoneServiceProviderCode = "1", InsuredCellPhoneNumber = "3145760007", InsuredBillMailOption = "E", InsuredBillReminderOption = "S", BankAccountType = "C", BankABANumber = "081009428", BankAccountNumber = "12341234123412341", InsuredSSNFederalId = "123123123" }, Account = new NewBilling_account() { BrokerFeeAddonFlag = "", SpanishFlag = "", SignatureReceived = " ", BillingType = "", AccountType = "P", 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", BrokerFeeAddonAmount = "0.00", PolicyBrokerFees = "0.00", PaymentReceived = "0.00", FloridaAccountFlag = "N", StampTax = "0.00", QuoteNumber = "0", BillingFee = "0.00" }, Agent = new NewBilling_agent() { AgentCodeCrossReference = " ", AgentName = " ", GeneralAgentName = " ", AgentCode = "040000" } }; var policies = new List <NewBilling_policies>(); policies.Add(new NewBilling_policies() { PolicyNumber = "TESTPFPOLICY0001", PolicyInceptionDate = "10012018", PolicyTerm = 12, PolicyInsuranceCompanyCrossReference = " ", PolicyInsuranceCompanyName = " ", PolicyInsuranceCompanyCO = " ", PolicyCoverageTypeCrossReference = " ", PolicyCommissionRetainFlag = "", PolicyFee3Description = "", PolicyFee3Type = "", PolicyFee4Type = "", PolicyFee4Description = "", PolicyInsuranceCompanyNumber = "6688", PolicyCoverageTypeCode = "18", PolicyPremiumAmount = "2000.00", PolicyPremiumDownpay = "500.00", PolicyUnpaidPremiumAmount = "1500.00", PolicyCommissionAmount = "0.00", PolicyCommissionPercentage = "0.000", PolicyFee1Type = "T", PolicyFee1Description = "TAXES", PolicyFee1Amount = "50.00", PolicyFee1AmountDownpay = "50.00", PolicyFee1UnpaidAmount = "0.00", PolicyFee2Type = "F", 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" }); newBillingArgs.Policies = policies; AISClient aISClient = new AISClient("http://localhost:53713"); var resut = await aISClient.NewBillingAccountSetupAsync(newBillingArgs); }
public async Task <NewBilling_response> NewBillingAccountSetup([FromBody] NewBillingAccountSetupCommand newBillingAccountSetupCommand) { return(await mediator.Send(newBillingAccountSetupCommand)); }