Example #1
0
        public void SearchByName()
        {
            DashboardScreen      dashboardScreen      = new DashboardScreen(window, application);
            SearchCustomerScreen searchCustomerScreen = dashboardScreen.LaunchSearchCustomer();
            int numberOfCustomers = searchCustomerScreen.Search("Suman", "");

            Assert.AreEqual(1, numberOfCustomers);
        }
Example #2
0
        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);
        }
Example #3
0
        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();
        }
Example #5
0
        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();
        }