public void ThenIShouldSeeInTheListOfAs_You_TypeResults(string customerName) { bool foundExpectedCustomerInSearchResults = Poller.PollForSuccess(() => _customerMaintenancePage.GetAsYouTypeSearchResults().Contains(customerName)); foundExpectedCustomerInSearchResults.Should().BeTrue(); }
public void ThenIShouldSeeTheCustomerInTheListOfAsYouTypeResults() { _storedCustomer.Should().NotBeNull(); bool foundExpectedCustomerInSearchResults = Poller.PollForSuccess(() => _customerMaintenancePage.GetAsYouTypeSearchResults().Contains(_storedCustomer.Name)); foundExpectedCustomerInSearchResults.Should().BeTrue(); }