static void Main(string[] args) { Console.WriteLine("Let's play Deal Or No Deal..."); Game game = new Game(); IBriefcaseService briefcaseService = new BriefcaseService(game); IPlayerService playerService = new PlayerService(briefcaseService); IBankerOfferService bankerOfferService = new BankerOfferService(); IGameRoundService gameRoundService = new GameRoundService(briefcaseService, bankerOfferService); GameInstance dealOrNoDeal = new GameInstance(briefcaseService, playerService, gameRoundService); dealOrNoDeal.Run(game); Console.ReadKey(); }
public DemoViewController( GameRoundService gameRoundService) { _gameRoundService = gameRoundService; }
public RoundsController(GameRoundService gameRoundService) { _gameRoundService = gameRoundService; }