public void ThenIShouldSeeInTheListOfAs_You_TypeResults(string customerName)
        {
            bool foundExpectedCustomerInSearchResults = Poller.PollForSuccess(() =>
                                                                              _customerMaintenancePage.GetAsYouTypeSearchResults().Contains(customerName));

            foundExpectedCustomerInSearchResults.Should().BeTrue();
        }
Пример #2
0
        public void ThenIShouldSeeTheCustomerInTheListOfAsYouTypeResults()
        {
            _storedCustomer.Should().NotBeNull();

            bool foundExpectedCustomerInSearchResults = Poller.PollForSuccess(() =>
                                                                              _customerMaintenancePage.GetAsYouTypeSearchResults().Contains(_storedCustomer.Name));

            foundExpectedCustomerInSearchResults.Should().BeTrue();
        }