Exemple #1
0
 public Robot(int id, string name, ISurfaceCoordinateValidator surfaceCoordinateValidator)
 {
     this.Id   = id;
     this.Name = name;
     _surfaceCoordinateValidator = surfaceCoordinateValidator;
 }
 public MoveCommand(ICommandParam commandParam, ISurfaceCoordinateValidator validator)
 {
     _commandParam        = commandParam;
     _coordinateValidator = validator;
 }
Exemple #3
0
        private IDirectionValidator _directionValidator;                 //= new DirectionValidator();


        public CommandParamValidator(ISurfaceCoordinateValidator surfaceCoordinateValidator, IDirectionValidator directionValidator)
        {
            _surfaceCoordinateValidator = surfaceCoordinateValidator;
            _directionValidator         = directionValidator;
        }
Exemple #4
0
 public PlaceCommand(ICommandParam commandParam, ISurfaceCoordinateValidator surfaceCoordinateValidator)
 {
     _commandParam = commandParam;
     _surfaceCoordinateValidator = surfaceCoordinateValidator;
 }