public void RunBeforeEveryTest() { var networkUtilities = new NetworkUtilities(); _localIpAddress = networkUtilities.GetLocalIPAddress(); _server = new TcpConnectionServer(_localIpAddress, 15845); }
public void RunBeforeEveryTest() { var networkUtilities = new NetworkUtilities(); _localIpAddress = networkUtilities.GetLocalIPAddress(); _server = new TcpConnectionServer(_localIpAddress, 15845); _testClient = Substitute.For <IConnectionClient>(); }
public void RunBeforeEveryTest() { var networkUtilities = new NetworkUtilities(); _localIpAddress = networkUtilities.GetLocalIPAddress(); _testPort = 15987; _testListener = new TcpConnectionServer(_localIpAddress, _testPort); _testListener.StartServer(); }
private void Install() { var service = new NetworkUtilities(); var scheduler = new CommandScheduler(); var serverConnection = new TcpConnectionServer(service.GetLocalIPAddress(), ServerPort); _server = new EditorConnectionServer(serverConnection, scheduler, BroadcastPort); ServerText.text = string.Format("Server running on {0}", serverConnection.Adress + ":" + serverConnection.Port.ToString()); }
public void RunAfterEveryTest() { _localIpAddress = null; _server.StopServer(); _server = null; }