private static Employee GetEmployeeId() { Employee emp = new Employee(1) { FirstName = TestDataInfrastructure.GetTestInputData("Emp_1_FirstName"), LastName = TestDataInfrastructure.GetTestInputData("Emp_1_LastName"), Phone = TestDataInfrastructure.GetTestInputData("Emp_1_Phone"), Email = TestDataInfrastructure.GetTestInputData("Emp_1_Email") }; return emp; }
private void ValidateEmployeeDetailsGeneralTabData(Employee emp) { Tab empDetailsTab = Window.Get<Tab>(TestDataInfrastructure.GetControlId("DetailsTabControl")); empDetailsTab.Pages[0].Select(); TextBox firstName = Window.Get<TextBox>(TestDataInfrastructure.GetControlId("FirstNameTextBox")); Assert.AreEqual(firstName.Text, emp.FirstName); TextBox lastName = Window.Get<TextBox>(TestDataInfrastructure.GetControlId("LastNameTextBox")); Assert.AreEqual(lastName.Text, emp.LastName); TextBox phone = Window.Get<TextBox>(TestDataInfrastructure.GetControlId("PhoneTextBox")); Assert.AreEqual(phone.Text, emp.Phone); TextBox email = Window.Get<TextBox>(TestDataInfrastructure.GetControlId("EmailTextBox")); Assert.AreEqual(email.Text, emp.Email); }