예제 #1
0
        public CommandInvoker(IRailroadCompanyReceiver railroadCompanyReceiver)
        {
            _railroadCompanyReceiver = railroadCompanyReceiver;

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