Beispiel #1
0
 public void WhenIHaveLoggedIntoTheCourseSpaceAsCSAdmin()
 {
     try
     {
         GenericTestStep.StepToLoggedIntoTheCourseSpaceAsCSAdmin();
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         throw new Exception(e.ToString());
     }
 }
 public void GivenProgramTypeProductIsAlreadyCreatedIfNotThenCreateANewProgramTypeProduct()
 {
     try
     {
         string isProductAlreadyCreated = DatabaseTools.GetProduct(Enumerations.ProductInstance.HedCoreProgram);
         if (isProductAlreadyCreated == null || isProductAlreadyCreated.Equals("False") || isProductAlreadyCreated.Equals(""))
         {
             GenericTestStep.StepToBrowsedUrlForPegasusUser("HED CS Admin");
             GenericTestStep.StepToLoggedIntoTheCourseSpaceAsCSAdmin();
             GenericTestStep.StepToItShouldShowTheManageProductsPage();
             GenericTestStep.StepToClickTheCreateNewProductLink();
             GenericTestStep.StepToCreateHedGeneralTypeProduct("HedCoreProgram");
             GenericTestStep.StepToItShouldDisplaySuccessfulMessage("New product created successfully.");
         }
     }
     catch (Exception e)
     {
         GenericHelper.Logs(e.ToString(), "FAILED");
         Assert.Fail(e.ToString());
     }
 }