public static void AddNewEmployee(Windows window, EmployeeDetails employeeDetails)
 {
     window.MainWindow.AddEmployee();
     window.NewEmployeeWindow.AddNewEmployee(employeeDetails);
     window.AssignDepartmentEmployeeWindow.AssignToDepartment(new DepartmentDetails().TestDepartmentName);
     window.NewEmployeeWindow.ClickOk();
 }
Example #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();
        }
 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();
 }