public CommandInvoker(IRailroadCompanyReceiver railroadCompanyReceiver) { _railroadCompanyReceiver = railroadCompanyReceiver; _setCommandType = new Dictionary <CommandType, Action <ICommand> > { { CommandType.RouteCommand, SetRouteCommand }, { CommandType.QueryCommand, SetQueryCommand } }; }
public void SetReceiver(IRailroadCompanyReceiver railroadCompanyReceiver) { _railroadCompanyReceiver = railroadCompanyReceiver; }