public void SearchByName() { DashboardScreen dashboardScreen = new DashboardScreen(window, application); SearchCustomerScreen searchCustomerScreen = dashboardScreen.LaunchSearchCustomer(); int numberOfCustomers = searchCustomerScreen.Search("Suman", ""); Assert.AreEqual(1, numberOfCustomers); }
public void Search_ExpressingEntityInAnotherWay() { DashboardScreen dashboardScreen = new DashboardScreen(window, application); SearchCustomerScreen searchCustomerScreen = dashboardScreen.LaunchSearchCustomer(); CustomerSearchCriteria searchCriteria = new CustomerSearchCriteria().OfName("Suman").OfAge("20"); List <Customer> customers = searchCustomerScreen.Search(searchCriteria); Assert.AreEqual(1, customers.Count); }
public void Search() { DashboardScreen dashboardScreen = new DashboardScreen(window, application); SearchCustomerScreen searchCustomerScreen = dashboardScreen.LaunchSearchCustomer(); CustomerSearchCriteria customerSearchCriteria = new CustomerSearchCriteria("Suman", ""); List <Customer> customers = searchCustomerScreen.Search(customerSearchCriteria); Assert.AreEqual(1, customers.Count); }
public virtual void IssueMovie(CustomerSearchCriteria customerSearchCriteria, MovieSearchCriteria movieSearchCriteria) { SearchCustomerScreen searchCustomerScreen = dashboard.LaunchSearchCustomer(); searchCustomerScreen.Search(customerSearchCriteria); SearchMoviesScreen searchMoviesScreen = searchCustomerScreen.LaunchSearchMovies(); searchMoviesScreen.Search(movieSearchCriteria); searchMoviesScreen.Select(); }
private void IssueMovie(CustomerSearchCriteria customerSearchCriteria) { SearchCustomerScreen searchCustomerScreen = dashboard.LaunchSearchCustomer(); searchCustomerScreen.Search(customerSearchCriteria); SearchMoviesScreen searchMoviesScreen = searchCustomerScreen.LaunchSearchMovies(); searchMoviesScreen.Search(new MovieSearchCriteria("Sholay", string.Empty)); searchMoviesScreen.Select(); }