public IIncentive CreateIncentiveMatrixInstance(
            int id, string name, string description, IIncentiveMatrix matrix)
        {
            switch (name)
            {
            case "Leadership Bonus":
                return(new LeadershipBonusIncentive(
                           new LeadershipBonusIncentive.LeadershipBonusValueCalculator(matrix)
                           )
                {
                    Id = id,
                    Name = name,
                    Description = description
                });

            default:
                throw new ArgumentException("Unknown incentive type", name);
            }
        }
Example #2
0
 public LeadershipBonusValueCalculator(IIncentiveMatrix matrix)
 {
     IncentiveMatrix = matrix.Values;
 }