Esempio n. 1
0
        public void GetEmployeeYearSalary()
        {
            decimal        expectedYearSalary = 33120000;
            EmployeeSalary FakeEmployee       = new EmployeeSalary()
            {
                Id               = 1200,
                Name             = "Julian",
                ContractTypeName = "HourlySalaryEmployee",
                RoleId           = 1,
                RoleName         = "Administrator",
                HourlySalary     = 23000,
                MonthlySalary    = 80000
            };

            Employee expectedEmployee = EmployeeFactory.GetFullEmployee(FakeEmployee);

            Assert.AreEqual(expectedEmployee.YearSalary, expectedYearSalary);
        }