/// <summary> /// check the item in the results list by index /// </summary> /// <param name="index">the item index</param> public void SelectItemInResultsListByIndex(int index) { ItemCentralLineItem itemCentralLineItem = ItemCentralResultsList[index]; if (itemCentralLineItem != null) { itemCentralLineItem.CheckOnItem(); } else { Assert.Fail("Could not find the Index: '" + index + "' within the Item Central Search Results list."); } }
/// <summary> /// check the item in the results list by ID /// </summary> /// <param name="itemId">the item ID</param> public void SelectItemInResultsListById(int itemId) { ItemCentralLineItem itemCentralLineItem = null; foreach (var item in ItemCentralResultsList) { if (item.ItemId == itemId) { itemCentralLineItem = item; } } if (itemCentralLineItem != null) { itemCentralLineItem.CheckOnItem(); } else { Assert.Fail("Could not find the Item ID: '" + itemId + "' within the Item Central Search Results list."); } }