public RoverTest() { var containerFactory = new ContainerFactory(); context = containerFactory.Resolve <IModuleContext>(); directionManager = context.Resolve <IDirectionManager>(); }
public MoveCommandTests() { var factory = new ContainerFactory(); context = factory.Resolve <IModuleContext>(); directionManager = context.Resolve <IDirectionManager>(); commandManager = context.Resolve <ICommandManager>(); }
public TranslateDirection(ISQLiteTesting dbHelper, IDirectionManager directionManager, ILanguageManager languageManager) { this.db = dbHelper; this.directionManager = directionManager; this.languageManager = languageManager; this.LanguageFrom = languageManager.GetItemForNameEng("English"); this.LanguageTo = languageManager.GetItemForNameEng("Russian"); }
static Program() { var containerFactory = new ContainerFactory(); var container = containerFactory.Get(); PlanetManager = container.Resolve <IPlanetManager>(); RoverManager = container.Resolve <IRoverManager>(); DirectionManager = containerFactory.Resolve <IDirectionManager>(); CommandManager = containerFactory.Resolve <ICommandManager>(); }
void Awake() { anim = GetComponent <Animator> (); rb = GetComponent <Rigidbody2D> (); colliders = transform.Find("Colliders").gameObject; playerWeapons = GetComponent <PlayerWeapons> (); movementController = GetComponent <IMovement> (); jumpingController = GetComponent <IJumpingController> (); dashingController = GetComponent <IDashing> (); playerDamageable = GetComponent <PlayerDamageable> (); directionManager = GetComponent <IDirectionManager> (); wallClimbing = GetComponent <WallClimbing>(); }
public CommandProvider(IDirectionManager directionManager, ITimerProvider timerProvider, Form form) { commands = new List <Command> { new StartTimerCommand(timerProvider, new[] { Keys.Left, Keys.Right, Keys.Up, Keys.Down }), new StopTimerCommand(timerProvider, new[] { Keys.Return }), new LeftDirectionCommand(directionManager, new[] { Keys.Left }), new RightDirectionCommand(directionManager, new[] { Keys.Right }), new UpDirectionCommand(directionManager, new[] { Keys.Up }), new DownDirectionCommand(directionManager, new[] { Keys.Down }), new NoneDirectionCommand(directionManager, new[] { Keys.Return }), new CenterCommand(form, new[] { Keys.Return }), }; }
public DownDirectionCommand(IDirectionManager directionManager, IEnumerable <Keys> keys) : base(directionManager, keys) { }
public TileTests() { directionManager = new ContainerFactory().Resolve <IDirectionManager>(); }
public ChangeDirectionCommand(IDirectionManager directionManager, IEnumerable <Keys> keys) : base(keys) { this.directionManager = directionManager; }
public RotationCommandHandler(IDirectionManager directionManager) { this.directionManager = directionManager; }
public BorderCollider(IBorderProvider borderProvider, DirectionManager directionManager) { this.borderProvider = borderProvider; this.directionManager = directionManager; }