public CommandInitializer(IPlateau _plateau, IRoverManager _roverManager, ICommandParser aCommandParser, ICommandInvoker aCommandInvoker)
 {
     plateau        = _plateau;
     commandParser  = aCommandParser;
     commandInvoker = aCommandInvoker;
     commandInvoker.SetPlateau(plateau);
     commandInvoker.SetRoverManager(_roverManager);
 }
예제 #2
0
        public CommandFactory(IPlateau plateau, ICommandParser commandParser, ICommandInvoker commandInvoker, IReportComposer reportComposer)
        {
            _rovers         = new List <IRover>();
            _plateau        = plateau;
            _commandParser  = commandParser;
            _commandInvoker = commandInvoker;
            _reportComposer = reportComposer;

            _commandInvoker.SetPlateau(_plateau);
            _commandInvoker.SetRovers(_rovers);
        }