public void SearchByName()
 {
     DashboardScreen dashboardScreen = new DashboardScreen(window, application);
     SearchCustomerScreen searchCustomerScreen = dashboardScreen.LaunchSearchCustomer();
     int numberOfCustomers = searchCustomerScreen.Search("Suman", "");
     Assert.AreEqual(1, numberOfCustomers);
 }
コード例 #2
0
ファイル: IssueMovieTest.cs プロジェクト: tmandersson/FastGTD
 public void IssueMovie_AnotherTry()
 {
     DashboardScreen dashboardScreen = new DashboardScreen(window, application);
     Customer customer = new Customer("Rakesh Kumar", "26", "34343545");
     CreateCustomerStep1Screen step1Screen = dashboardScreen.LaunchCreateCustomer();
     step1Screen.FillAndNext(customer);
 }
コード例 #3
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);
 }
コード例 #4
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 void CreateCustomerWithoutEntities()
 {
     DashboardScreen dashboardScreen = new DashboardScreen(window, application);
     CreateCustomerStep1Screen step1Screen = dashboardScreen.LaunchCreateCustomer();
     step1Screen.FillAndNext("Rakesh Kumar", "26");
     CreateCustomerStep2Screen step2Screen = new CreateCustomerStep2Screen(window, application);
     step2Screen.Fill("34343545");
 }