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 UserInteractionService(ICommandTextValidator commandTextValidator) { _commandTextValidator = commandTextValidator; }
public PlaceTextCommand(ICommandTextValidator commandTextValidator) { _commandTextValidator = commandTextValidator; }