Beispiel #1
0
        public void EmployeeCalculatePayTestEqual()
        {
            var test    = new HourlyEmployee("a", "a", 1, 2, 10, 40);
            var resealt = test.CalculatePay();

            Assert.AreEqual("$263.40", resealt);
        }
Beispiel #2
0
        public void EmployeeCalculateFICAPaidTestEqual()
        {
            var test = new HourlyEmployee("a", "a", 1, 2, 10, 40);

            test.CalculatePay();
            var resealt = test.fICA;

            Assert.AreEqual(30.60m, resealt);
        }
Beispiel #3
0
        public void EmployeeCalculateFedTaxTestEqual()
        {
            var test = new HourlyEmployee("a", "a", 1, 2, 10, 40);

            test.CalculatePay();
            var resealt = test.FedTax;

            Assert.AreEqual(106.00m, resealt);
        }
        private void AddLineItemToPage(List <LineItem> page, HourlyEmployee employee)
        {
            var reportItem = new LineItem
            {
                Name = employee.Name,
                Pay  = employee.CalculatePay()
            };

            page.Add(reportItem);
        }