Esempio n. 1
0
        public void EditAPayGrade()
        {
            // Pay grade data
            #region
            string payGrade  = "Manger - Level2";
            string payGrade2 = "Manager - Level 2";
            #endregion

            Home.GoTo();
            Home.LoginAsAdmin();

            // Create a pay grade
            Menu.Admin.Job.PayGrades.GoTo();
            PayGrade.AddPayGrade(payGrade);

            // Edit a pay grade
            Menu.Admin.Job.PayGrades.GoTo();
            PayGrade.EditPayGrade(payGrade, payGrade2);

            Menu.Admin.Job.PayGrades.GoTo();
            Assert.IsTrue(PayGrade.PayGradeCorrectlyAssigned(payGrade2), $"The Pay Grade {payGrade2} was not correctly edited.");

            // Cleanup
            Menu.Admin.Job.PayGrades.GoTo();
            PayGrade.DeletePayGrade(payGrade);

            Home.Logout();
        }
Esempio n. 2
0
        public void AddCurrencyToAPayGrade()
        {
            // Pay grade data
            #region
            string  payGrade  = "Manager - Level 2";
            string  currency  = "USD - United States Dollar";
            decimal minSalary = 50000.00m;
            decimal maxSalary = 65000.00m;
            #endregion

            Home.GoTo();
            Home.LoginAsAdmin();

            Menu.Admin.Job.PayGrades.GoTo();

            // Create a new pay grade
            PayGrade.AddPayGrade(payGrade);

            // Assign a currency to a pay grade
            PayGrade.AssignedCurrencies.AssignCurrency(payGrade, currency, minSalary, maxSalary);

            Assert.IsTrue(PayGrade.AssignedCurrencies.CurrencyCorrectlyAssigned(payGrade, currency, minSalary, maxSalary),
                          $"The Currency {currency} with parameters Minimum Salary {minSalary} and Maximum Salary {maxSalary} was not added correctly to Pay Grade {payGrade}.");

            // Cleanup
            Menu.Admin.Job.PayGrades.GoTo();
            PayGrade.DeletePayGrade(payGrade);

            Home.Logout();
        }
Esempio n. 3
0
        public void DeleteCurrencyAssignedToAPayGrade()
        {
            // Pay grade data
            #region
            string payGrade = "Manager - Level 3";
            // Original data
            string  currency  = "USD - United States Dollar";
            decimal minSalary = 50000.00m;
            decimal maxSalary = 65000.00m;
            #endregion

            Home.GoTo();
            Home.LoginAsAdmin();

            Menu.Admin.Job.PayGrades.GoTo();

            // Create a new pay grade
            PayGrade.AddPayGrade(payGrade);

            // Assign a currency to a pay grade
            PayGrade.AssignedCurrencies.AssignCurrency(payGrade, currency, minSalary, maxSalary);

            // Edit a currency assigned to a pay grade
            Menu.Admin.Job.PayGrades.GoTo();
            PayGrade.AssignedCurrencies.DeleteAssignedCurrency(payGrade, currency);

            Assert.IsTrue(PayGrade.AssignedCurrencies.CurrencyCorrectlyDeleted(payGrade, currency), $"The Currency {currency} was not deleted correctly from Pay Grade {payGrade}.");

            //Cleanup
            Menu.Admin.Job.PayGrades.GoTo();
            PayGrade.DeletePayGrade(payGrade);

            Home.Logout();
        }
Esempio n. 4
0
        public void DeleteAPayGrade()
        {
            // Pay grade data
            #region
            string payGrade = "Manager - Level 2";
            #endregion

            Home.GoTo();
            Home.LoginAsAdmin();

            Menu.Admin.Job.PayGrades.GoTo();
            PayGrade.AddPayGrade(payGrade);

            Menu.Admin.Job.PayGrades.GoTo();
            PayGrade.DeletePayGrade(payGrade);

            Assert.IsTrue(PayGrade.PayGradeCorrectlyDeleted(payGrade), $"The Pay Grade {payGrade} was not correctly deleted.");

            Home.Logout();
        }