public void Setup() { player = new Player("name"); var players = new[] { player }; var realEstateHandler = FakeHandlerFactory.CreateEmptyRealEstateHandler(players); var banker = new Banker(players); boardHandler = FakeHandlerFactory.CreateBoardHandlerForFakeBoard(players, realEstateHandler, banker); moveBackCard = new MoveBackThreeCard(boardHandler); }
public void Setup() { var players = new[] { new Player("Player") }; var dice = new ControlledDice(); var realEstateHandler = FakeHandlerFactory.CreateEmptyRealEstateHandler(players); var banker = new Banker(players); var boardHandler = FakeHandlerFactory.CreateBoardHandlerForFakeBoard(players, realEstateHandler, banker); var jailHandler = new JailHandler(dice, boardHandler, banker); var deckFactory = new DeckFactory(players, jailHandler, boardHandler, realEstateHandler, banker); deck = deckFactory.BuildCommunityChestDeck(); }
public void Setup() { player = new Player("name"); var players = new[] { player }; banker = new Banker(players); var realEstateHandler = FakeHandlerFactory.CreateEmptyRealEstateHandler(players); boardHandler = FakeHandlerFactory.CreateBoardHandlerForFakeBoard(players, realEstateHandler, banker); passGoCard = new MoveAndPassGoCard("move", BoardConstants.ATLANTIC_AVENUE, boardHandler); }
public void SetupPlayerWithStrategy() { dice = new ControlledDice(); player = new Player("name"); var players = new[] { player }; banker = new Banker(players); var realEstateHandler = FakeHandlerFactory.CreateEmptyRealEstateHandler(players); boardHandler = FakeHandlerFactory.CreateBoardHandlerForFakeBoard(players, realEstateHandler, banker); jailHandler = new JailHandler(dice, boardHandler, banker); }
public void Setup() { player = new Player("name"); var players = new[] { player }; var dice = new ControlledDice(); banker = new Banker(players); var realEstateHandler = FakeHandlerFactory.CreateEmptyRealEstateHandler(players); var boardHandler = FakeHandlerFactory.CreateBoardHandlerForFakeBoard(players, realEstateHandler, banker); jailHandler = new JailHandler(dice, boardHandler, banker); getOutOfJailCard = new GetOutOfJailFreeCard(jailHandler); }
private void SetupGameWithPlayers(Int32 numberOfPlayers) { var players = GeneratePlayerIEnumerable(numberOfPlayers); var realEstateHandler = FakeHandlerFactory.CreateEmptyRealEstateHandler(players); banker = new Banker(players); var boardHandler = FakeHandlerFactory.CreateBoardHandlerForFakeBoard(players, realEstateHandler, banker); dice = new ControlledDice(); var jailHandler = new JailHandler(dice, boardHandler, banker); var turnHandler = new TurnHandler(dice, boardHandler, jailHandler, realEstateHandler, banker); game = new Game(players, turnHandler, banker); }
public void Setup() { player = new Player("name"); var players = new[] { player }; var realEstateHandler = FakeHandlerFactory.CreateEmptyRealEstateHandler(players); var boardHandler = FakeHandlerFactory.CreateBoardHandlerForFakeBoard(players, realEstateHandler, banker); var dice = new ControlledDice(); banker = new Banker(players); var jailHandler = new JailHandler(dice, boardHandler, banker); var deckFactory = new DeckFactory(players, jailHandler, boardHandler, realEstateHandler, banker); deck = deckFactory.BuildCommunityChestDeck(); drawCard = new DrawCard("draw card"); drawCard.AddDeck(deck); }