示例#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);
        }
示例#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);
        }
示例#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);
        }
示例#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);
        }