public void Calculate_for_AnnualSalary_0_to_18200() { EmployeePayslipViewModel viewModel = new EmployeePayslipViewModel() { Employee = new Employee() { Id = Guid.NewGuid(), FirstName = "Sarah", LastName = "Smith", AnnualSalary = 13000, SuperRate = 3, PaymentDateId = Guid.Parse("{2C5473E9-276C-4204-9DD4-6FDE1238C89D}") } }; var result = controller.Calculate(viewModel) as ViewResult; var modelResult = (EmployeePayslipViewModel)result.Model; Assert.AreEqual("Sarah Smith", modelResult.Name); Assert.AreEqual("01 Januray to 31 January", modelResult.PaymentDateDescription); Assert.AreEqual(1083, modelResult.GrossIncome); Assert.AreEqual(0, modelResult.IncomeTax); Assert.AreEqual(1083, modelResult.NetIncome); Assert.AreEqual(32, modelResult.Super); }