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 MotoRenewalBefore() { 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); Moto.HighlightBillingScreen(); string originalPremium = Moto.CheckPolicyPremium("cash"); string policyNumber = Moto.GetPolicyNumber(); this.SiteForRenewal(policyNumber, PolicyType, RenewalPremium); RegressApp(PolicyType); RenewalLoader(); RenewalModule(UiMap.CustomerCode, PolicyType); RenewalsInvite(false); Moto.CloseAndOpenPolicyList(UiMap.CustomerCode); Moto.RenewalCheckStatus("REN"); string premium = Moto.CheckPolicyPremium("cash"); House.CheckPremiumInQuoteDocument(this.Docs.DocumentsForMotoRenewalBefore, "cash", originalPremium: double.Parse(originalPremium)); House.OpenTransList(Transactions.GetTransactionDictionary(premium, "cash", originalPremium)); Moto.ClosePolicy(); //mta1 Moto.SelectMenu(); Moto.MotoMTABefore(); Moto.MTADate(DateTime.Now.AddDays(2).ToString("dd/MM/yy")); Moto.MotoMTABeforeAccept(); Moto.MotoMTAMessageCancelled(); Moto.MotoMTABeforeFinish(); //mta2 Moto.SelectMenu(); Moto.MotoMTABefore2(); Moto.MTADate(DateTime.Now.ToString("dd/MM/yy")); Moto.MTAMessageBeforeCurrent(); Moto.EtamOk(true); Moto.MTADate(DateTime.Now.AddDays(10).ToString("dd/MM/yy")); Moto.MotoMTAMessageAfterDate(); Moto.EtamOk(true); Moto.MTACancel(); }