Ejemplo n.º 1
0
 public static void AddNewEmployee(Windows window, EmployeeDetails employeeDetails)
 {
     window.MainWindow.AddEmployee();
     window.NewEmployeeWindow.AddNewEmployee(employeeDetails);
     window.AssignDepartmentEmployeeWindow.AssignToDepartment(new DepartmentDetails().TestDepartmentName);
     window.NewEmployeeWindow.ClickOk();
 }
Ejemplo n.º 2
0
        public void Setup()
        {
            application = Application.Launch(ConfigurationManager.AppSettings["NorthwindApp"]);
            window = new Windows();
            window.Initialise(application);

            employeeDetails = new EmployeeDetails();
            departmentDetails = new DepartmentDetails();
            projectDetails = new ProjectDetails();
        }
Ejemplo n.º 3
0
 public static void AddNewEmployeeAndLinkToProject(Windows window, EmployeeDetails employeeDetails)
 {
     window.MainWindow.AddEmployee();
     window.NewEmployeeWindow.AddNewEmployee(employeeDetails);
     window.AssignDepartmentEmployeeWindow.AssignToDepartment(new DepartmentDetails().TestDepartmentName);
     window.NewEmployeeWindow.ClickOk();
     window.EmployeeRecordWindow.AssignEmployeeToProject();
     window.EmployeeProjectRecordWindow.FillInProjectDetails();
     window.EmployeeRecordWindow.ClickOk();
 }