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()); } }