public void Calculate_RateEqualZero_SalaryEqual(bool includeTax)
        {
            var model = new SalaryModel
            {
                IncludeTax = includeTax,
                Rate       = 0
            };

            var salary = _calculator.Calculate(model);

            salary.Should().Be(model.Rate);
        }
Beispiel #2
0
        public void HourlySalary_Should_Calculate_Salary(double amount)
        {
            var expected = 144000;

            var hourlyCalculator = new HourlySalaryCalculator(new Salary {
                Amount = amount
            });

            Assert.AreEqual(expected, hourlyCalculator.Calculate());
        }
Beispiel #3
0
        public void Calulate()
        {
            var employee = new SalaryCalculator.Service.Model.Employee {
                HourlySalary = 60
            };

            var salary = _hourlySalaryCalculator.Calculate(employee);

            Assert.Equal(86400, salary);
        }