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); }
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); }
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; }