Пример #1
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()
     };
 }
Пример #2
0
 public UserInteractionService(ICommandTextValidator commandTextValidator)
 {
     _commandTextValidator = commandTextValidator;
 }
Пример #3
0
 public PlaceTextCommand(ICommandTextValidator commandTextValidator)
 {
     _commandTextValidator = commandTextValidator;
 }