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