Esempio n. 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);
 }
Esempio n. 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);
 }
Esempio n. 3
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;
        }