public ShitheadPileLogicTests() { _game = new Game(ShitheadConstants.GAME_TYPE, string.Empty) { Id = Guid.Parse("D0199003-D79D-493A-8118-50F9EE2A7755") }; _discardPile = new Pile(_game, PileType.Discard, ShitheadConstants.PileIdentifiers.DISCARD); _game.Piles.Add(_discardPile); var burnPile = new Pile(_game, PileType.Discard, ShitheadConstants.PileIdentifiers.BURN); _game.Piles.Add(burnPile); _deckPile = new Pile(_game, PileType.Deck, ShitheadConstants.PileIdentifiers.DECK); _game.Piles.Add(_deckPile); _player1 = AddPlayer(Guid.Parse("E4F475AA-0FAB-4FAA-883E-C7ED1D26F5C0")); _game.State = _player1.Id.ToString(); _shitheadMoveValidator = Substitute.For <IShitheadMoveValidator>(); var shitheadPlayerLogic = Substitute.For <IShitheadPlayerLogic>(); _shitheadPileLogic = new ShitheadPileLogic(_shitheadMoveValidator, shitheadPlayerLogic); }
public ShitheadPileLogic(IShitheadMoveValidator shitheadMoveValidator, IShitheadPlayerLogic shitheadPlayerLogic) { _shitheadMoveValidator = shitheadMoveValidator; _shitheadPlayerLogic = shitheadPlayerLogic; }