Пример #1
0
        public virtual void CreateCustomer(Customer customer)
        {
            CreateCustomerStep1Screen customerStep1Screen = dashboard.LaunchCreateCustomer();
            CreateCustomerStep2Screen customerStep2Screen = customerStep1Screen.FillAndNext(customer);

            customerStep2Screen.Finish(customer);
        }
        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");
        }
Пример #3
0
        public void Create_PopulatingAutomatically()
        {
            ScreenRepository          screenRepository    = new ScreenRepository(application.ApplicationSession);
            Dashboard                 dashboard           = screenRepository.Get <Dashboard>("Dashboard", InitializeOption.NoCache);
            CreateCustomerStep1Screen customerStep1Screen = dashboard.LaunchCreateCustomer();

            Customer customer = new Customer("Rahul", "20", "4366654");
            CreateCustomerStep2Screen customerStep2Screen = customerStep1Screen.FillAndNext_UsingAutomaticPopulate(customer);

            customerStep2Screen.Finish_UsingAutomaticPopulate(customer);
        }
        public void Create()
        {
            DashboardScreen           dashboardScreen = new DashboardScreen(window, application);
            Customer                  customer        = new Customer("Rakesh Kumar", "26", "34343545");
            CreateCustomerStep1Screen step1Screen     = dashboardScreen.LaunchCreateCustomer();

            step1Screen.FillAndNext(customer);
            CreateCustomerStep2Screen step2Screen = new CreateCustomerStep2Screen(window, application);

            step2Screen.Fill(customer);
        }