Exemple #1
0
        public void TC_VerifyCoursePoints()
        {
            WeightManagementCourse wm = new WeightManagementCourse();

            wm.TC_ValidateCourseAndProgressCheckInIncentiveHistory();
            if (incentiveEnabled.Equals("false"))
            {
                Assert.Ignore("Incentives not enabled for client");
            }
            Page_HAPrompt haprompt = new Page_HAPrompt();

            haprompt.GoToDashboard();
            int awardedpoints          = cmn.GetPoints(clientname);
            int points_progresscheckin = Convert.ToInt32(cmn.GetInstancePointsValue(clientname, "ProgressCheckIn"));
            int points_course          = Convert.ToInt32(cmn.GetInstancePointsValue(clientname, "Course"));
            int expectedtotalpoints    = points + points_progresscheckin + points_course;

            is_soft_assert = false;
            Assert.AreEqual(expectedtotalpoints, awardedpoints);
        }
Exemple #2
0
        public void TC_WeightManagementCourse()
        {
            WeightManagementCourse wmc = new WeightManagementCourse();

            wmc.TC_VerifyWeightManagementCourse();
        }