Esempio n. 1
0
        private static Salary FudgeSalary(Salary salary)
        {
            // increase the salary slightly from the job ad range

            if (salary == null)
            {
                return(null);
            }

            var fudgedSalary = salary.Clone();

            if (salary.LowerBound != null)
            {
                fudgedSalary.LowerBound = Decimal.Multiply(salary.LowerBound.Value, .9M);
            }

            if (salary.UpperBound != null)
            {
                fudgedSalary.UpperBound = Decimal.Multiply(salary.UpperBound.Value, 1.1M);
            }

            return(fudgedSalary);
        }