public CommandExecutorTest() { _mockMovementProcessor = SubstituteFor <IMovementProcessor>(); _mockPositionReporter = SubstituteFor <IPositionReporter>(); BuildServices(); _executor = serviceProvider.GetService <ICommandExecutor>(); }
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); }
public MoveCommand(Stack <Call> callStack, IMovementProcessor movementProcessor) { _callStack = callStack; _movementProcessor = movementProcessor; }
public void Clear() => movementProcessor = null;
public MovementProcessorTest() { BuildServices(); _movementProcessor = serviceProvider.GetService <IMovementProcessor>(); _positionTracker = serviceProvider.GetService <IPositionTracker>(); }