예제 #1
0
        public void CreateEmployee_Test()
        {
            // Home page object init and definition
            HomePage homeObj = new HomePage();

            homeObj.NavigateToEmployee(driver);

            // Employee page object init and definition
            EmployeesPage employeeObj = new EmployeesPage();

            employeeObj.CreateEmployee(driver);
        }
예제 #2
0
        private void PageChanged(int pageIndex)
        {
            this.pageIndex = pageIndex;
            switch (pageIndex)
            {
            case 0:
                newClientPage     = new NewClientPage(CloseFrame);
                MainFrame.Content = newClientPage;
                break;

            case 1:
                newOrderPage      = new NewOrderPage(CloseFrame);
                MainFrame.Content = newOrderPage;
                break;

            case 2:
                newProjectPage    = new NewProjectPage(CloseFrame);
                MainFrame.Content = newProjectPage;
                break;

            case 3:
                newEmployeePage   = new NewEmployeePage(CloseFrame);
                MainFrame.Content = newEmployeePage;
                break;

            case 4:
                clientsPage       = new ClientsPage(CloseFrame);
                MainFrame.Content = clientsPage;
                break;

            case 5:
                ordersPage        = new OrdersPage(CloseFrame);
                MainFrame.Content = ordersPage;
                break;

            case 6:
                employeesPage     = new EmployeesPage(CloseFrame);
                MainFrame.Content = employeesPage;
                break;

            case 7:
                allprojectsPage   = new AllProjectsPage(CloseFrame);
                MainFrame.Content = allprojectsPage;
                break;

            case 8:
                lifeprojectsPage  = new ProjectLifePage(CloseFrame);
                MainFrame.Content = lifeprojectsPage;
                break;

            case 9:
                notopened         = new NotOpenedProjectsPage(CloseFrame);
                MainFrame.Content = notopened;
                break;

            case 10:
                alltasksPage      = new TasksPage(CloseFrame);
                MainFrame.Content = alltasksPage;
                break;

            case 11:
                newTaskPage       = new NewTaskPage(CloseFrame);
                MainFrame.Content = newTaskPage;
                break;

            case 12:
                newItemPage       = new NewItemPage(CloseFrame);
                MainFrame.Content = newItemPage;
                break;

            case 13:
                itemsPage         = new ItemsPage(CloseFrame);
                MainFrame.Content = itemsPage;
                break;
            }
        }
        // GET: Employees
        public ActionResult Index(EmployeesPage employeesPage)
        {
            populateSortFilterSearchViewbags(employeesPage);

            return(View(employeesPage));
        }
예제 #4
0
        public App()
        {
            InitializeComponent();

            MainPage = new EmployeesPage();
        }