public GenerateNewGameAction(AddWordsToGridLeftToRightService addWordsService, FillGridService fillGridService, IShuffleWordsService shuffleWordsService, IGameService gameService, IWordsRepository words) { this.addWordsService = addWordsService; this.fillGridService = fillGridService; this.shuffleWordsService = shuffleWordsService; this.gameService = gameService; this.words = words; }
public void Setup() { wordsRepository = new InMemoryWordsRepository(); ramdomPositionGenerator = new SomeRandomQueuedPositionGenerator(); shuffleWordsService = new SomeShuffleWordsService(); addWordsService = new AddWordsToGridLeftToRightService(ramdomPositionGenerator); }
public ServiceProvider() { RamdomPositionGenerator = new RamdomPositionGenerator(); AddWordsLeftToRightService = new AddWordsToGridLeftToRightService(RamdomPositionGenerator); FillGridService = new FillGridService(); ShuffleWordsService = new ShuffleWordsService(); SelectionPositionService = new SelectionPositionService(); GameService = new GameService(SelectionPositionService); }
public void Setup() { ramdomPositionGenerator = new SomeRandomQueuedPositionGenerator(); addWordsService = new AddWordsToGridLeftToRightService(ramdomPositionGenerator); fillGridService = new FillGridService(); shuffleWordsService = new SomeShuffleWordsService(); selectionPositionService = new SelectionPositionService(); gameService = new GameService(selectionPositionService); wordsRepository = new InMemoryWordsRepository(); action = new GenerateNewGameAction(addWordsService, fillGridService, shuffleWordsService, gameService, wordsRepository); }