public GameHub(IMapper mapper, IGameManager gameManager, IPlayCardManager playCardManager, IUserRepository userRepository, IGameRepository gameRepository, IHallOfFameRepository hallOfFameRepository) { _gameManager = gameManager; _playCardManager = playCardManager; _userRepository = userRepository; _gameRepository = gameRepository; _hallOfFameRepository = hallOfFameRepository; _mapper = mapper; }
public void Setup() { _hallOfFameRepository = A.Fake <IHallOfFameRepository>(); _gameManager = new GameManager(_hallOfFameRepository); _gameSetup = new GameSetup() { BannedCards = new List <CardValue>() }; _game = new Game(_gameSetup); _game.Direction = Direction.Left; _game.Deck = new Deck(_gameSetup); _game.DiscardedPile = new List <ICard>() { new Charity(), new BlackHole(), new Blackjack() }; _game.LastCardPlayed = new LastCardPlayed(CardColor.Blue, CardValue.Five, "", "", false); var player = new Player(new User("123", "john")); var player2 = new Player(new User("456", "andrew")); player.Cards = new List <ICard>() { new Charity(), new BlackHole(), new Blackjack(), new Charity(), new BlackHole(), new Blackjack() }; player2.Cards = new List <ICard>() { new Charity(), new BlackHole(), new Blackjack(), new Charity(), new BlackHole(), new Blackjack() }; _game.Players = new List <Player>() { player, player2 }; _game.PlayerToPlay = player; _moveParams = new MoveParams(player, player.Cards.First(), player, CardColor.Blue, _game.DiscardedPile.First(), new List <int>() { 1, 2, 3 }, new List <ICard>() { new Charity() }, 10, new List <int>() { 0, 1 }, new BlackHole(), "odd"); }
public GameManager(IHallOfFameRepository hallOfFameRepository) { _hallOfFameRepository = hallOfFameRepository; }
public HallOfFameController(IHallOfFameRepository hallOfFameRepository, IMapper mapper) { _hallOfFameRepository = hallOfFameRepository; _mapper = mapper; }