Exemplo n.º 1
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();
        }