예제 #1
0
파일: GameTests.cs 프로젝트: kevPo/Monopoly
 public void SetUp()
 {
     playerIds = new[] { 0, 1, 2 };
     var banker = new TraditionalBanker(playerIds);
     turnFactory = new TraditionalTurnFactory(banker);
     game = new Game(playerIds, turnFactory);
 }
예제 #2
0
 private void CreateAndPlayGame(IEnumerable<Int32> playerIds)
 {
     var banker = new TraditionalBanker(playerIds);
     var turnFactory = new TraditionalTurnFactory(banker);
     game = new Game(playerIds, turnFactory);
     game.Play();
 }