public void SetUp() { eventDispatcher = Substitute.For <IEventDispatcher> (); calculateTouchCommand = new CalculateTouchCommand(); calculateTouchCommand.eventDispatcher = eventDispatcher; eventDispatcher.CleanAndDestroy(); }
public void OnInject() { calculateTouchCommand = commandFactory.Build <CalculateTouchCommand> (); eventDispatcher.AddListener <Vector3> (TouchMessage.CALCULATE_TOUCH, CalculateTouch); }