public void GivenSMSUserIsAlreadyCreatedIfNotThenCreateSMSUser()
 {
     try
     {
         string isInstructorAlreadyCreated = DatabaseTools.GetUsername(Enumerations.UserType.CsSmsInstructor);
         if (isInstructorAlreadyCreated == null || isInstructorAlreadyCreated.Equals("False") ||
             isInstructorAlreadyCreated.Equals(""))
         {
             GenericTestStep.StepToBrowsedUrlForPegasusUser("SMSRegistration");
             GenericTestStep.StepToClickedTheIAcceptButton();
             GenericTestStep.StepToCreateNewSmsUser("CsSmsInstructor");
         }
         string isstudentAlreadyCreated = DatabaseTools.GetUsername(Enumerations.UserType.CsSmsStudent);
         if (isstudentAlreadyCreated == null || isstudentAlreadyCreated.Equals("False") || isstudentAlreadyCreated.Equals(""))
         {
             GenericTestStep.StepToBrowsedUrlForPegasusUser("SMSRegistration");
             GenericTestStep.StepToClickedTheIAcceptButton();
             GenericTestStep.StepToCreateNewSmsUser("CsSmsStudent");
         }
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         Assert.Fail(e.ToString());
     }
 }
 public void WhenICreateAnewSmsStudent()
 {
     try
     {
         GenericTestStep.StepToClickedTheIAcceptButton();
         GenericTestStep.StepToCreateNewSmsUser("CsSmsStudent");
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         Assert.Fail(e.ToString());
     }
 }