示例#1
0
 public void WhenIClickLinkInLabManagementPage(string linkName)
 {
     if (!BP_LabManagementUtilities.GetLabManagementLink())
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
示例#2
0
 public void WhenIOpenLabWithLabidFromMrrPage(string labId)
 {
     if (!BP_LabManagementUtilities.OpenLab(labId))
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
示例#3
0
 public void WhenIEnterLabsDetailsAndSaveToEdit(Table labList)
 {
     if (!BP_LabManagementUtilities.EditLab(labList.CreateSet <LabData>()))
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
示例#4
0
 public void ThenIShouldSee(string s)
 {
     if (!(string.Equals(BP_LabManagementUtilities.NormalizationMessageNoStudy(), s)))
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
示例#5
0
 public void ThenISeeFilteredDataInColumnWithFilterTextAndFilterCriteriaInLabsGrid(String columnName, String filterText, String filterCriteria)
 {
     if (!BP_LabManagementUtilities.IsDataFiltered(columnName, filterText, filterCriteria))
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
示例#6
0
 public void ThenIClearFilterOnColumnInLabsGrid(String columnName)
 {
     if (!BP_LabManagementUtilities.ClearFilter(columnName))
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
示例#7
0
 public void WhenIApplyFilterOnColumnWithFilterTextByFilterCriteriaInLabsGrid(String columnName, String filterText, String filterCriteria)
 {
     if (!BP_LabManagementUtilities.ApplyFilter(columnName, filterText, filterCriteria))
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
示例#8
0
 public void ThenISeeDataInSortOrderInColumnInLabGrid(String sortOrder, String columnName)
 {
     if (!BP_LabManagementUtilities.IsDataInSortOrder(sortOrder, columnName))
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
示例#9
0
 public void WhenISortColumnInLabsGridOfLabManagementPage(String columnName)
 {
     if (!BP_LabManagementUtilities.ClickOnColumnHeader(columnName))
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
示例#10
0
 public void WhenIEditLabAndSaveLabWithduplicateDetails(String labId, Table labData)
 {
     if (BP_LabManagementUtilities.EditLab(labId, labData.CreateInstance <LabData>()))
     {
         ScenarioContext.Current["ActResult"] = "Failed";
     }
 }
示例#11
0
        public void ThenISeeLabsWithDetailsInLabGrid(Table labList)
        {
            IEnumerable <LabData> labs           = labList.CreateSet <LabData>();
            List <LabData>        mismatchedLabs = null;

            if (!BP_LabManagementUtilities.AreLabsAvailableWithDetails(labs, out mismatchedLabs))
            {
                ScenarioContext.Current["ActResult"] = "Failed";
            }
        }