public TextCommandControl(
     ICommandTextExecutor commandTextExecutor,
     IUserInteractionByTextService userInteractionByTextService,
     ToyRobot toyRobot
     )
 {
     _commandTextExecutor          = commandTextExecutor;
     _userInteractionByTextService = userInteractionByTextService;
     _toyRobot = toyRobot;
 }
Exemplo n.º 2
0
 public CommandTextExecutor(ICommandTextValidator commandTextValidator, IUserInteractionByTextService userInteractionByTextService)
 {
     _commandTextOptions = new List <ICommandTextOption>
     {
         new PlaceTextCommand(commandTextValidator),
         new LeftTextCommand(),
         new MoveTextCommand(),
         new RightTextCommand(),
         new ReportTextCommand(userInteractionByTextService),
         new UnknownTextCommand()
     };
 }
 public ReportTextCommand(IUserInteractionByTextService userInteractionByTextService)
 {
     _userInteractionByTextService = userInteractionByTextService;
 }