public void PaySlip_NSW_MYOB2() { var factory = new NSWFactory(); BasePaySlipEngine payEngine = factory.GetPaySlipEngine(); var input = new EngineInput() { FirstName = "Ryan", LastName = "Chen", AnnualSalary = 120000, SuperRate = 10, PayPeriod = "01 March - 31 March" }; var paySlipOutput = payEngine.GeneratePaySlip(input); Assert.IsTrue(paySlipOutput.Name.Equals("Ryan Chen") && paySlipOutput.GrossIncome == 10000 && paySlipOutput.IncomeTax == 2669 && paySlipOutput.NetIncome == 7331 && paySlipOutput.Super == 1000); }
public void PaySlip_NSWMYOB1() { var factory = new NSWFactory(); BasePaySlipEngine payEngine = factory.GetPaySlipEngine(); var input = new EngineInput() { FirstName = "David", LastName = "Rudd", AnnualSalary = 60050, SuperRate = 9, PayPeriod = "01 March - 31 March" }; var paySlipOutput = payEngine.GeneratePaySlip(input); Assert.IsTrue(paySlipOutput.Name.Equals("David Rudd") && paySlipOutput.GrossIncome == 5004 && paySlipOutput.IncomeTax == 922 && paySlipOutput.NetIncome == 4082 && paySlipOutput.Super == 450); }