Exemple #1
0
        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 MotoCancelAccept()
 {
     SetOfficeRegKeys();
     UiMap.CustomerCode = Moto.TamMotorSteps(Customer);
     Moto.CreateNewBusinessPolicy(ExpectedAddress);
     Moto.AssertSelectPolicyForm();
     Moto.SelectPolicyQuote();
     Moto.AcceptAndFinishQuote("cash", 2);
     Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
     Moto.CheckPolicyPremium("cash");
     Moto.MotoCloseDetails();
     Moto.MotoMTA();
     Moto.MotoCancelPolicy();
     Moto.MtaEffectiveDate();
     Moto.MotoCancelPolicy1();
     Moto.MotoMTAConfirmPolicy("cancel");
     Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
     Moto.MotoCheckPolicyStatusExpectedValues.UIItemEditText = "CAN";
     Moto.MotoCheckPolicyStatus();
     Moto.CheckCorrectNumberTrans(2);
     Moto.CheckCorrectDocumentPresent(Docs.DocumentsForMotoNewBusinessCancelAccept);
 }