Exemplo n.º 1
0
        // Evaluate SWZ Client Employees Salary
        void EvaluateSWZOrgEmployeesCurrentMonthSalary()
        {
            // If you have an object of Only SWZOrganizationEmployee with Base salary 100, 50
            SWZOrganizationEmployee swzemployee = new SWZOrganizationEmployee();

            swzemployee.BasicSalary = new List <int>();
            swzemployee.BasicSalary.AddRange(new[] { 100, 50 });
            var calculateSWZEmployeeSalary = swzemployee.CalculateSalary();

            // So the current salary of employee is : 0 as we have shadowed the Calculate Salary Method. and will be consider as new implmenetion for
        }
Exemplo n.º 2
0
        // Evaluate Employees Salary
        void EvaluateEmployeesCurrentMonthSalary()
        {
            // If you have an object of Only Employee with Base salary 100, 50
            Employee employee = new Employee();

            employee.BasicSalary = new List <int>();
            employee.BasicSalary.AddRange(new[] { 100, 50 });
            var calculateEmployeeSalary = employee.CalculateSalary();

            // So the current salary of employee is : 150



            // If you have an object of Only SWZOrganizationEmployee with Base salary 100, 50
            SWZOrganizationEmployee swzemployee = new SWZOrganizationEmployee();

            swzemployee.BasicSalary = new List <int>();
            swzemployee.BasicSalary.AddRange(new[] { 100, 50 });
            var calculateSWZEmployeeSalary = swzemployee.CalculateSalary();

            // So the current salary of employee is : 150
        }