예제 #1
0
 public void WhenIClickSaveButtonInEditPermissionsPage()
 {
     if (!BP_PermissionUtilities.SavePermissions())
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
예제 #2
0
 public void ThenISeeNormalizationPageInEditMode()
 {
     if (!BP_PermissionUtilities.VerifyNormalizeLabDataPageInViewMode())
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
예제 #3
0
 public void WhenISetValueInCategoryForPermissionForPermissionTypeInEditPermissionsPage(string category, string permission, string permissionType)
 {
     if (!BP_PermissionUtilities.SetPermission(category, permission, permissionType))
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
예제 #4
0
 public void ThenIValidateGroupPermissionsDataForThePremissonsGroupAreInBelowOrder(string category, Table table)
 {
     if (!BP_PermissionUtilities.CheckPermissions(category, table.CreateSet <GroupPermissionData>()))
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
예제 #5
0
 public void ThenIShouldSeeMessageOnRunNormalizationPage(string message)
 {
     if (!BP_PermissionUtilities.ValidateMessageOnRunNormalizationPage(message))
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
예제 #6
0
 public void ThenIShouldSeeMessageOnLabManagementPageInRedColorWithTextAlignedInCenter_(String message)
 {
     if (!BP_PermissionUtilities.ValidateMessageOnPage(message))
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
예제 #7
0
 public void WhenIExpandPermissionsGroup(string category)
 {
     if (!BP_PermissionUtilities.ExpandCategory(category))
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
예제 #8
0
 public void ThenISeeAddLabPageInEditMode()
 {
     if (!BP_PermissionUtilities.VerifyAddLabPageInEditMode())
     {
         Console.WriteLine("Page is not in Edit  mode");
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
예제 #9
0
 public void WhenIShouldSeeLabPageInViewMode()
 {
     if (!BP_PermissionUtilities.VerifyLabPageInViewMode())
     {
         Console.WriteLine("Page is not in View  mode");
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
예제 #10
0
        public void WhenISetPermissionsForNonloggedinUserGroupInEditPermissionsPage(Table table)
        {
            IEnumerable <GroupPermissionsData> dataList = table.CreateSet <GroupPermissionsData>();

            if (!BP_PermissionUtilities.SetPermissionsForNonLoggedinUserGroup((List <GroupPermissionsData>)dataList))
            {
                ScenarioContext.Current["ActResult"] = "Failed";
            }
        }
예제 #11
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 + ".");
     }
 }