public void ShouldInjectWindowManagerIntoGrid() { //given var gridConfig = new GridConfig { GridElements = new[] { new Dimensions(new Point(0, 0), new Size(300, 300)), } }; var grid = _gridFactory.FromConfig(gridConfig); //when grid.MoveActiveWindow(GridDirections.Left); //then A.CallTo(() => _windowManager.GetActiveWindow()).MustHaveHappened(); }
private Grid GetGrid(int gridIndex) { var grid = _gridFactory.FromConfig(_gridConfigs[gridIndex]); return(grid); }