예제 #1
0
 public CommandCenter(ILandingSurface aLandingSurface, ICommandParser aCommandParser, ICommandInvoker aCommandInvoker, IReportComposer aReportComposer)
 {
     rovers = new List<IRover>();
     landingSurface = aLandingSurface;
     commandParser = aCommandParser;
     commandInvoker = aCommandInvoker;
     reportComposer = aReportComposer;
     commandInvoker.SetLandingSurface(landingSurface);
     commandInvoker.SetRovers(rovers);
 }
예제 #2
0
 public CommandMain(ISurface aLandingSurface, ICommandParser aCommandParser, ICommandInvoker aCommandInvoker, IReportComposer aReportComposer)
 {
     rovers         = new List <IRover>();
     landingSurface = aLandingSurface;
     commandParser  = aCommandParser;
     commandInvoker = aCommandInvoker;
     reportComposer = aReportComposer;
     commandInvoker.SetLandingSurface(landingSurface);
     commandInvoker.SetRovers(rovers);
 }
예제 #3
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);
        }
예제 #4
0
        public Mission(ILandingSurface landingSurface, ICommandParser commandParser, ICommandInvoker commandInvoker, IReportBuilder reportBuilder)
        {
            _rovers = new List <IRover>();

            _commandParser  = commandParser;
            _commandInvoker = commandInvoker;

            _commandInvoker.SetLandingSurface(landingSurface);
            _commandInvoker.SetRovers(_rovers);

            _reportBuilder = reportBuilder;
        }