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;
 }
Пример #2
0
 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);
        }
 public void SetUp()
 {
     fillGridService = new FillGridService();
 }