Example #1
0
        public static GameDto GetGame2(bool upperAndLowerCases = false)
        {
            var game2 = new GameDto();

            game2.Players.Add(PlayerDtoFake.GetPlayer(PlayerDtoFake.WINNER_PLAYER_NAME, PlayerDtoFake.WINNER_PLAYER_MOVE));
            game2.Players.Add(PlayerDtoFake.GetPlayer(GameConstants.Scissor));
            return(game2);
        }
Example #2
0
        public static GameDto GetGameWithWrongMove()
        {
            var game3 = new GameDto();

            game3.Players.Add(PlayerDtoFake.GetPlayer(WRONG_MOVE));
            game3.Players.Add(PlayerDtoFake.GetPlayer(GameConstants.Scissor));
            return(game3);
        }
Example #3
0
        public static GameDto GetGame1()
        {
            var game1 = new GameDto();

            game1.Players.Add(PlayerDtoFake.GetPlayer(char.ToLower(GameConstants.Paper)));
            game1.Players.Add(PlayerDtoFake.GetPlayer(char.ToLower(GameConstants.Scissor)));
            return(game1);
        }
Example #4
0
        public static GameDto GetGameWithWrongNumberOfPlayers()
        {
            var game3 = new GameDto();

            for (var i = 0; i < WRONG_NUMBER_PLAYERS; i++)
            {
                game3.Players.Add(PlayerDtoFake.GetPlayer(GameConstants.Scissor));
            }
            return(game3);
        }