Exemplo n.º 1
0
        public decimal CalculateAnnualMonthlySalary(decimal monthlySalary)
        {
            IContractService contract = ContractCreator.Create(ContractCreator.MonthlySalary);
            decimal          salary   = contract.CalculateAnnualSalary(monthlySalary);

            return(salary);
        }
Exemplo n.º 2
0
        public decimal CalculateAnnualHourlySalary(decimal hourlySalary)
        {
            IContractService contract = ContractCreator.Create(ContractCreator.HourlySalary);
            decimal          salary   = contract.CalculateAnnualSalary(hourlySalary);

            return(salary);
        }