Exemplo n.º 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();
        }
Exemplo n.º 2
0
        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();
        }
Exemplo n.º 3
0
        public void MotoRebrokeRenewNewScheme()
        {
            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.MotoRebroke(false, false);
            Moto.PublicCreditCheckOk();
            Moto.MotoRebrokeSelectScheme(Moto.CommonParams.SendEndKeys);
            Moto.RebrokeSelectAlternative();
            Moto.MotoRebrokeCurrent(false);
            Moto.RenewalModuleInvite(false);
            Moto.RenewConfirmInvite();
            Moto.RenewalModuleInvite1();
            Moto.RebrokeAlternativeFinish("cash");
            Moto.ContinueToRetrieveResponse();
            Moto.CancelPrint();
            Moto.RebrokeAlternativeFinish1();
            Moto.RenewalModuleClose();
            Moto.CloseAndOpenPolicyList(UiMap.CustomerCode);
            Moto.HighlightBillingScreen();
            string premium = Moto.CheckPolicyPremium("cash");

            House.CheckPremiumInQuoteDocument(this.Docs.DocumentsForMotoRebrokeRenewExistingScheme, "cash", originalPremium: double.Parse(originalPremium));
            House.OpenTransList(Transactions.GetTransactionDictionary(premium, "cash", originalPremium));
            Moto.RenewalCheckStatus("REW");
            Moto.ClosePolicy();
        }