public void MotoAmendRiskExistingScheme() { SetOurHighwayRegKeys(); UiMap.CustomerCode = Moto.TamMotorSteps(Customer); Moto.MotoPostcodeLookup(); Moto.MotoSearchCar(); Moto.MotoInceptionDate(); Moto.MotoCalculate(); Moto.QuoteResults1(); Moto.PublicCreditCheckOk(); Moto.MotoSelectHighwayPolicy(); Moto.AcceptAndFinishQuote("cash", 2); Moto.CloseAndOpenPolicyList(UiMap.CustomerCode); string policyNumber = Moto.GetPolicyNumber(); string originalPremium = Moto.CheckPolicyPremium("cash"); Renewals(policyNumber, PolicyType, RenewalPremium); Moto.MotoAmendRisk(); Moto.PublicCreditCheckOk(); Moto.QuoteSelectListCancel(); Moto.AmendSelectQuote(); Moto.MotoAmendRiskRenew(); Moto.CloseAndOpenPolicyList(UiMap.CustomerCode); Moto.HighlightBillingScreen(); string premium = Moto.CheckPolicyPremium("cash"); House.CheckPremiumInQuoteDocument(this.Docs.DocumentsForMotoMotoAmendRiskExistingScheme, "cash", originalPremium: double.Parse(originalPremium)); House.OpenTransList(Transactions.GetTransactionDictionary(premium, "cash", originalPremium)); Moto.RenewalCheckStatus("REN"); Moto.ClosePolicy(); }
public void MotoAmendQuoteDirectDebit() { SetOurZurichRegKeys(); UiMap.CustomerCode = Moto.TamMotorSteps(Customer); Moto.CreateNewBusinessPolicy(ExpectedAddress); Moto.AssertSelectPolicyForm(); Moto.SelectPolicyQuote(); Moto.AcceptAndFinishQuote("dd", 2); Moto.CloseAndOpenPolicyList(UiMap.CustomerCode); string originalPremium = Moto.CheckPolicyPremium("dd"); Moto.OpenTransList(Transactions.GetTransactionDictionary(originalPremium, "dd")); Moto.CheckCorrectDocumentPresent(this.Docs.DocumentsForMotoNewBusinessQuoteDd); string policyNumber = Moto.GetPolicyNumber(); Renewals(policyNumber, "Motor", RenewalPremium, "Zurich"); Moto.MotoAmendRisk(); Moto.PublicCreditCheckOk(); Moto.CommonParams.SendHomeKeys = "{End}"; Moto.AmendSelectQuote(); Moto.MotoAmendRiskNew("dd"); Moto.ContinueToRetrieveResponse(); Moto.MotoAmendRiskNew1(); Moto.CloseAndOpenPolicyList(UiMap.CustomerCode); Moto.HighlightBillingScreen(); string premium = Moto.CheckPolicyPremium("dd"); House.CheckCorrectDocumentPresent(this.Docs.DocumentsForMotoAmendRiskNew); House.OpenTransList(Transactions.GetTransactionDictionary(premium, "dd", originalPremium)); Moto.ClosePolicy(); }
public void MotoAmendRiskNewScheme() { SetOurHighwayRegKeys(); UiMap.CustomerCode = Moto.TamMotorSteps(Customer); Moto.MotoPostcodeLookup(); Moto.MotoSearchCar(); Moto.MotoInceptionDate(); Moto.MotoCalculate(); Moto.QuoteResults1(); Moto.PublicCreditCheckOk(); Moto.MotoSelectHighwayPolicy(); Moto.AcceptAndFinishQuote("cash", 2); Moto.CloseAndOpenPolicyList(UiMap.CustomerCode); string policyNumber = Moto.GetPolicyNumber(); string originalPremium = Moto.CheckPolicyPremium("cash"); Renewals(policyNumber, PolicyType, RenewalPremium); Moto.MotoAmendRisk(); Moto.PublicCreditCheckOk(); Moto.CommonParams.SendHomeKeys = "{End}"; Moto.AmendSelectQuote(); Moto.MotoAmendRiskNew("cash"); Moto.ContinueToRetrieveResponse(); Moto.MotoAmendRiskNew1(); Moto.CloseAndOpenPolicyList(UiMap.CustomerCode); Moto.HighlightBillingScreen(); string premium = Moto.CheckPolicyPremium("cash"); Moto.RenewalCheckStatus("REW"); House.CheckPremiumInQuoteDocument(this.Docs.DocumentsForMotoAmendRiskNew, "cash", originalPremium: double.Parse(originalPremium)); House.OpenTransList(Transactions.GetTransactionDictionary(premium, "cash", originalPremium)); Moto.ClosePolicy(); //mta1 Moto.MotoMTA(); Moto.MotoMTAAccept(); Moto.MTADate(DateTime.Now.AddDays(5).ToString("dd/MM/yy")); Moto.AmendDateBeforeMessage(); Moto.EtamOk(true); Moto.MTADate(DateTime.Now.AddDays(12).ToString("dd/MM/yy")); Moto.MotoFinishMTA(); //mta2 Moto.MotoMTA(); Moto.MotoMTAAccept(); Moto.MTADate(DateTime.Now.AddDays(9).ToString("dd/MM/yy")); Moto.MTAMessageBeforeCurrent(); Moto.EtamOk(true); Moto.MTACancel(); }