Exemplo n.º 1
0
        public void AssociateTheCourseToPegasusProduct()
        {
            //Course association to the product
            logger.LogMethodEntry("CourseAssociation",
                                  "AssociateTheCourseToPegasusProduct",
                                  base.isTakeScreenShotDuringEntryExit);
            //Click Program Course Add Button
            new AddButtonPage().ClickProgramCoursesAddButton();
            //Click Enrollment Mode Option
            new AdminToolPage().ClickAddNewCourseEnrollmentModeOption();
            //To get the productId and ResourceId stored in memory
            License licence = License.Get(License.LicenseTypeEnum.Rumba);

            //Fill the productId and ResourceId
            new CourseEnrollmentModePage().CreateLicensing
                (licence.ProductID, licence.ResourceID);
            //Create Page Object
            CourseEnrollmentModePage courseEnrollmentModePage =
                new CourseEnrollmentModePage();

            //Select Enrollement Course Enrollment Mode
            courseEnrollmentModePage.SelectEnrollmentMode();
            //Save To Associate Coure In Product
            courseEnrollmentModePage.ClickEnrollmentSaveButton();
            new ShowMessagePage().ClickTheAlertOkButton();
            logger.LogMethodExit("CourseAssociation",
                                 "AssociateTheCourseToPegasusProduct",
                                 base.isTakeScreenShotDuringEntryExit);
        }
        public void AssociateTheCourseToPegasusProductBySelectingECollegeDeliveryMode
            (String deliveryMode)
        {
            Logger.LogMethodEntry("ECollegeCourseEnrollment",
                                  "AssociateTheCourseToPegasusProductBySelectingECollegeDeliveryMode",
                                  base.IsTakeScreenShotDuringEntryExit);
            //Click Program Course Add Button
            new AddButtonPage().ClickProgramCoursesAddButton();
            //Click Enrollment Mode Option
            new AdminToolPage().ClickAddNewCourseEnrollmentModeOption();
            //Create Page Object
            CourseEnrollmentModePage courseEnrollmentModePage =
                new CourseEnrollmentModePage();

            //Save Course Enrollment Mode
            courseEnrollmentModePage.SelectEnrollmentMode();
            //Select Delivery Checbox
            courseEnrollmentModePage.SelectDeliveryPreference((
                                                                  CourseEnrollmentModePage.DeliveryModeTypeEnum)
                                                              Enum.Parse(typeof(CourseEnrollmentModePage.DeliveryModeTypeEnum),
                                                                         deliveryMode));
            //Click Enrollement Save Button
            courseEnrollmentModePage.ClickEnrollmentSaveButton();
            Logger.LogMethodExit("ECollegeCourseEnrollment",
                                 "AssociateTheCourseToPegasusProductBySelectingECollegeDeliveryMode",
                                 base.IsTakeScreenShotDuringEntryExit);
        }
        public void AssociateTheCourseToPegasusProduct()
        {
            //Associate Course To Product
            Logger.LogMethodEntry("CourseAssociation",
                                  "AssociateTheCourseToPegasusProduct",
                                  base.IsTakeScreenShotDuringEntryExit);
            //Click Program Course Add Button
            new AddButtonPage().ClickProgramCoursesAddButton();
            //Click Enrollment Mode Option
            new AdminToolPage().ClickAddNewCourseEnrollmentModeOption();
            //Create Page Object
            CourseEnrollmentModePage courseEnrollmentModePage =
                new CourseEnrollmentModePage();

            //Select Enrollement Course Enrollment Mode
            courseEnrollmentModePage.SelectEnrollmentMode();
            //Save To Associate Coure In Product
            courseEnrollmentModePage.ClickEnrollmentSaveButton();
            Logger.LogMethodExit("CourseAssociation",
                                 "AssociateTheCourseToPegasusProduct",
                                 base.IsTakeScreenShotDuringEntryExit);
        }