public void WhenISetValueInCategoryForPermissionForPermissionTypeInEditPermissionsPage(string category, string permission, string permissionType) { if (!BP_PermissionUtilities.SetPermission(category, permission, permissionType)) { ScenarioContext.Current["ActResult"] = "Failed"; } }
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 + "."); } }