public CommandExecutorTest()
 {
     _mockMovementProcessor = SubstituteFor <IMovementProcessor>();
     _mockPositionReporter  = SubstituteFor <IPositionReporter>();
     BuildServices();
     _executor = serviceProvider.GetService <ICommandExecutor>();
 }
Example #2
0
        public void SetUp()
        {
            if (!partBehaviour.PartInstance.TryGetComponent <MovementInputBehaviour>(out var movementInputBehaviour))
            {
                return;
            }

            if (!partBehaviour.PartInstance.TryGetComponent <IMovementProcessor>(out var movementProcessor))
            {
                return;
            }

            movementInputBehaviour.SetMovementBehaviour(movementBehaviour);

            this.movementProcessor = movementProcessor;
        }
        public void Setup()
        {
            IPacManMovementCommands pacmanMovementCommands = new PacManMovementCommands();

            movementProcessor = new Pacman_Movement_Service.Implementations.MovementProcessor(pacmanMovementCommands);
        }
Example #4
0
 public MoveCommand(Stack <Call> callStack, IMovementProcessor movementProcessor)
 {
     _callStack         = callStack;
     _movementProcessor = movementProcessor;
 }
Example #5
0
 public void Clear() => movementProcessor = null;
Example #6
0
 public MovementProcessorTest()
 {
     BuildServices();
     _movementProcessor = serviceProvider.GetService <IMovementProcessor>();
     _positionTracker   = serviceProvider.GetService <IPositionTracker>();
 }