public void GivenSMSUserIsAlreadyEnrolledIntoTheInstructorCourseIfNotThenEnrollTheSMSUserInInstructorCourse()
 {
     try
     {
         string isInstructorEnrolledInCourse = DatabaseTools.GetEnrolledUser(Enumerations.UserType.CsSmsInstructor);
         if (isInstructorEnrolledInCourse == null || isInstructorEnrolledInCourse.Equals("False") || isInstructorEnrolledInCourse.Equals(""))
         {
             GenericTestStep.StepToBrowsedUrlForPegasusUser("CsSmsInstructor");
             GenericTestStep.StepToLoggedIntoTheCourseSpaceAsSMSInstructor();
             GenericTestStep.StepToIAmOnThePage("Global Home");
             GenericTestStep.StepToCreateInstructorCourse();
             GenericTestStep.StepToClickedOnTheLogoutLinkToGetLoggedOutFromTheApplication();
         }
         string isStudentEnrolledInCourse = DatabaseTools.GetEnrolledUser(Enumerations.UserType.CsSmsStudent);
         if (isStudentEnrolledInCourse == null || isStudentEnrolledInCourse.Equals("False") || isStudentEnrolledInCourse.Equals(""))
         {
             GenericTestStep.StepToBrowsedUrlForPegasusUser("CsSmsStudent");
             GenericTestStep.StepToLoggedIntoTheCourseSpaceAsSMSStudent();
             GenericTestStep.StepToCloseStudentHelpTextWindow();
             GenericTestStep.StepToIAmOnThePage("Global Home");
             GenericTestStep.StepToEnrolStudentToCourse("MasterCourse");
             GenericTestStep.StepToClickedOnTheLogoutLinkToGetLoggedOutFromTheApplication();
         }
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         Assert.Fail(e.ToString());
     }
 }