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

            Assert.AreEqual(1, numberOfCustomers);
        }
Пример #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);
        }
Пример #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);
        }