Example #1
0
        public void SetupTimesheetPeriod()
        {
            string firstDayOfWeek = "Monday";


            #region


            // Project Data
            string projectAdmin = _firstName + " " + _middleName + " " + _lastName;
            #endregion

            Home.LoginAsAdmin();

            Menu.PIM.EmployeeList.GoTo();
            EmployeeList.AddEmployeeViaButton(_firstName, _middleName, _lastName, _createLoginDetails, _userName, _password, _statusEnabled);

            Menu.Time.GoTo();

            // Test to see if FirstDayOfWeek exists, if it does set it to Monday
            if (Time.DefineTimesheetPeriod.IsDefineTimesheetPeriodDisplayed() == true)
            {
                Time.SetFirstDayOfWeek(firstDayOfWeek);
            }

            // Setup Project
            // Add new Customer
            Menu.Time.ProjectInfo.Customers.GoTo();
            Customers.AddNewCustomer(_customerName, _customerDescription);

            // Add Project and create new customer
            Menu.Time.ProjectInfo.Projects.GoTo();
            Projects.AddNewProject(_customerName, _projectName, projectAdmin, _projectDescription);
            Projects.AddProjectActivity(_activityName1);
            Projects.AddProjectActivity(_activityName2);

            Home.Logout();
        }