Exemple #1
0
 public void WhenISetValueInCategoryForPermissionForPermissionTypeInEditPermissionsPage(string category, string permission, string permissionType)
 {
     if (!BP_PermissionUtilities.SetPermission(category, permission, permissionType))
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
Exemple #2
0
 public void WhenISetPermissionUnderCategoryToAndSave_(string Permission, string Category, string ValueToSet)
 {
     if (BP_PermissionUtilities.SetPermission(Category, Permission, ValueToSet))
     {
         Control_ActionUtilities.Click(DL_PermissionsPage.PermissionsSaveButton, "Unable to click Save button on Group Permissions page.");
     }
     else
     {
         Assert.Fail("Permission " + Permission + " under " + Category + " is not set to " + ValueToSet + ".");
     }
 }