コード例 #1
0
 public static CreateTableCommand CreateTableCommand()
 {
     return(new CreateTableCommand()
     {
         Params = TableParamsMock.ParamsOne()
     });
 }
コード例 #2
0
 public static TupleTable TableTwo()
 {
     return(new TupleTable()
     {
         IdTable = 420,
         NbPlayers = 7,
         PossibleAction = LobbyActionEnum.Leave,
         Params = TableParamsMock.ParamsTwo()
     });
 }
コード例 #3
0
 public static TupleTable TableThree()
 {
     return(new TupleTable()
     {
         IdTable = 4200,
         NbPlayers = 6,
         PossibleAction = LobbyActionEnum.None,
         Params = TableParamsMock.ParamsThree()
     });
 }
コード例 #4
0
 public static TupleTable TableOne()
 {
     return(new TupleTable()
     {
         IdTable = 42,
         NbPlayers = 3,
         PossibleAction = LobbyActionEnum.Join,
         Params = TableParamsMock.ParamsOne()
     });
 }
コード例 #5
0
        public static JoinTableResponse JoinTableResponse()
        {
            var response = JoinTableCommand().ResponseSuccess();

            response.Params = TableParamsMock.ParamsOne();
            //response.TotalPotAmount = 126;
            //response.PotsAmount = new List<int>() { 5, 10, 15, 20 };
            //response.BoardCards = new[] { "2s", "5h", "Jd", "Ac" };
            response.Seats          = SeatInfoMock.AllSeats();
            response.GameHasStarted = true;

            return(response);
        }