1. Joel Ross
  2. TrafficLight

Source

TrafficLight / src / Core / Services / Indicators / IndicatorTypeMaps.cs

using System;
using System.Collections.Generic;
using RossCode.TrafficLight.Core.Domain;

namespace RossCode.TrafficLight.Core.Services.Indicators
{
    public static class IndicatorTypeMaps
    {
        public static readonly IDictionary<IndicatorType, Func<IBuildStatusIndicatorService>> GetIndicatorServiceFor = new Dictionary<IndicatorType, Func<IBuildStatusIndicatorService>>
            {
                { IndicatorType.Delcom, IoC.Resolve<DelcomTrafficLightBuildStatusIndicatorService> },
                { IndicatorType.BusyLight, IoC.Resolve<BusyLightBuildStatusIndicatorService> }
            };
    }
}