예제 #1
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();
        }