25 lines
1.4 KiB
C#
25 lines
1.4 KiB
C#
using NitroxClient.Communication.Abstract;
|
|
using NitroxModel.DataStructures.Util;
|
|
using NitroxModel.MultiplayerSession;
|
|
using NitroxModel.Packets;
|
|
using NSubstitute;
|
|
|
|
namespace Nitrox.Test.Client.Communication.MultiplayerSession
|
|
{
|
|
internal static class TestConstants
|
|
{
|
|
public const string TEST_IP_ADDRESS = "#.#.#.#";
|
|
public const int TEST_SERVER_PORT = 11000;
|
|
public const ushort TEST_PLAYER_ID = 1;
|
|
public const string TEST_PLAYER_NAME = "TEST";
|
|
public const string TEST_RESERVATION_KEY = "@#*(&";
|
|
public const string TEST_CORRELATION_ID = "CORRELATED";
|
|
public const int TEST_MAX_PLAYER_CONNECTIONS = 100;
|
|
public const MultiplayerSessionReservationState TEST_REJECTION_STATE = MultiplayerSessionReservationState.REJECTED | MultiplayerSessionReservationState.UNIQUE_PLAYER_NAME_CONSTRAINT_VIOLATED;
|
|
public static readonly AuthenticationContext TEST_AUTHENTICATION_CONTEXT = new AuthenticationContext(TEST_PLAYER_NAME, Optional.Empty);
|
|
public static readonly MultiplayerSessionPolicy TEST_SESSION_POLICY = new MultiplayerSessionPolicy(TEST_CORRELATION_ID, false, TEST_MAX_PLAYER_CONNECTIONS, false);
|
|
public static readonly PlayerSettings TEST_PLAYER_SETTINGS = new PlayerSettings(RandomColorGenerator.GenerateColor());
|
|
public static readonly IMultiplayerSessionConnectionState TEST_CONNECTION_STATE = Substitute.For<IMultiplayerSessionConnectionState>();
|
|
}
|
|
}
|