コード例 #1
0
        public async Task TestNetSalary(decimal netSalary)
        {
            PaycheckAPI.Domain.Paycheck.Models.Paycheck paycheck = await _service.execute(_employee.Id);

            Assert.AreEqual(
                netSalary,
                paycheck.NetSalary
                );
        }
コード例 #2
0
        public async Task TestTotalDiscounts(decimal totalDiscounts)
        {
            PaycheckAPI.Domain.Paycheck.Models.Paycheck paycheck = await _service.execute(_employee.Id);

            Assert.AreEqual(
                totalDiscounts,
                paycheck.TotalDiscounts
                );
        }
コード例 #3
0
        public async Task TestBuildPaycheck()
        {
            PaycheckAPI.Domain.Paycheck.Models.Paycheck paycheck = await _service.execute(_employee.Id);

            Assert.AreEqual(
                _employee.grossWage,
                paycheck.GrossSalary
                );
        }