public MessageHandler(FaderPort fp, IStateManager stateManager, IMessageFactory messageFactory) { _stateManager = stateManager; _messageFactory = messageFactory; _fp = fp; }
public StateManager(FaderPort fp, IEnumerable <IStateMessageHandler> handlers) { _fp = fp; _handlers = handlers.ToDictionary(h => h.State, StringComparer.OrdinalIgnoreCase); }