public void WhenIClickSaveButtonInEditPermissionsPage() { if (!BP_PermissionUtilities.SavePermissions()) { ScenarioContext.Current["ActResult"] = "Failed"; } }
public void ThenISeeNormalizationPageInEditMode() { if (!BP_PermissionUtilities.VerifyNormalizeLabDataPageInViewMode()) { ScenarioContext.Current["ActResult"] = "Failed"; } }
public void WhenISetValueInCategoryForPermissionForPermissionTypeInEditPermissionsPage(string category, string permission, string permissionType) { if (!BP_PermissionUtilities.SetPermission(category, permission, permissionType)) { ScenarioContext.Current["ActResult"] = "Failed"; } }
public void ThenIValidateGroupPermissionsDataForThePremissonsGroupAreInBelowOrder(string category, Table table) { if (!BP_PermissionUtilities.CheckPermissions(category, table.CreateSet <GroupPermissionData>())) { ScenarioContext.Current["ActResult"] = "Failed"; } }
public void ThenIShouldSeeMessageOnRunNormalizationPage(string message) { if (!BP_PermissionUtilities.ValidateMessageOnRunNormalizationPage(message)) { ScenarioContext.Current["ActResult"] = "Failed"; } }
public void ThenIShouldSeeMessageOnLabManagementPageInRedColorWithTextAlignedInCenter_(String message) { if (!BP_PermissionUtilities.ValidateMessageOnPage(message)) { ScenarioContext.Current["ActResult"] = "Failed"; } }
public void WhenIExpandPermissionsGroup(string category) { if (!BP_PermissionUtilities.ExpandCategory(category)) { ScenarioContext.Current["ActResult"] = "Failed"; } }
public void ThenISeeAddLabPageInEditMode() { if (!BP_PermissionUtilities.VerifyAddLabPageInEditMode()) { Console.WriteLine("Page is not in Edit mode"); ScenarioContext.Current["ActResult"] = "Failed"; } }
public void WhenIShouldSeeLabPageInViewMode() { if (!BP_PermissionUtilities.VerifyLabPageInViewMode()) { Console.WriteLine("Page is not in View mode"); ScenarioContext.Current["ActResult"] = "Failed"; } }
public void WhenISetPermissionsForNonloggedinUserGroupInEditPermissionsPage(Table table) { IEnumerable <GroupPermissionsData> dataList = table.CreateSet <GroupPermissionsData>(); if (!BP_PermissionUtilities.SetPermissionsForNonLoggedinUserGroup((List <GroupPermissionsData>)dataList)) { 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 + "."); } }