public void WhenIClickLinkInLabManagementPage(string linkName) { if (!BP_LabManagementUtilities.GetLabManagementLink()) { ScenarioContext.Current["ActResult"] = "Failed"; } }
public void WhenIOpenLabWithLabidFromMrrPage(string labId) { if (!BP_LabManagementUtilities.OpenLab(labId)) { ScenarioContext.Current["ActResult"] = "Failed"; } }
public void WhenIEnterLabsDetailsAndSaveToEdit(Table labList) { if (!BP_LabManagementUtilities.EditLab(labList.CreateSet <LabData>())) { ScenarioContext.Current["ActResult"] = "Failed"; } }
public void ThenIShouldSee(string s) { if (!(string.Equals(BP_LabManagementUtilities.NormalizationMessageNoStudy(), s))) { ScenarioContext.Current["ActResult"] = "Failed"; } }
public void ThenISeeFilteredDataInColumnWithFilterTextAndFilterCriteriaInLabsGrid(String columnName, String filterText, String filterCriteria) { if (!BP_LabManagementUtilities.IsDataFiltered(columnName, filterText, filterCriteria)) { ScenarioContext.Current["ActResult"] = "Failed"; } }
public void ThenIClearFilterOnColumnInLabsGrid(String columnName) { if (!BP_LabManagementUtilities.ClearFilter(columnName)) { ScenarioContext.Current["ActResult"] = "Failed"; } }
public void WhenIApplyFilterOnColumnWithFilterTextByFilterCriteriaInLabsGrid(String columnName, String filterText, String filterCriteria) { if (!BP_LabManagementUtilities.ApplyFilter(columnName, filterText, filterCriteria)) { ScenarioContext.Current["ActResult"] = "Failed"; } }
public void ThenISeeDataInSortOrderInColumnInLabGrid(String sortOrder, String columnName) { if (!BP_LabManagementUtilities.IsDataInSortOrder(sortOrder, columnName)) { ScenarioContext.Current["ActResult"] = "Failed"; } }
public void WhenISortColumnInLabsGridOfLabManagementPage(String columnName) { if (!BP_LabManagementUtilities.ClickOnColumnHeader(columnName)) { ScenarioContext.Current["ActResult"] = "Failed"; } }
public void WhenIEditLabAndSaveLabWithduplicateDetails(String labId, Table labData) { if (BP_LabManagementUtilities.EditLab(labId, labData.CreateInstance <LabData>())) { ScenarioContext.Current["ActResult"] = "Failed"; } }
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"; } }