public ServerCenter() { mUnitTestPath = AppDomain.CurrentDomain.BaseDirectory + @"UnitTest" + System.IO.Path.DirectorySeparatorChar; Loger = new LogHandlerAdapter(); TimeWatch = new System.Diagnostics.Stopwatch(); TimeWatch.Restart(); }
public NodeApp(string host, int port) { ServerHost = host; ServerPort = port; Loger = new LogHandlerAdapter(); UNIT_TESTCASE_PATH = AppDomain.CurrentDomain.BaseDirectory + @"UnitTest" + System.IO.Path.DirectorySeparatorChar; Name = Guid.NewGuid().ToString("N"); AgentManager = new Process.TestProcessAgentManager(this); this.Performance = new Node.Performance(); }
public TestProcess(int nodeport, string name) { this.UnitTests = new Dictionary <string, DTCore.UnitTest>(); Name = name; Loger = new LogHandlerAdapter(); mClient = BeetleX.ServerFactory.CreateTcpClient <Network.ClientPacket>("127.0.0.1", nodeport); mClient.ConnectedServer = OnServerConnect; mClient.ClientError = OnClientError; mClient.Packet.Completed = OnClientPacketCompleted; TimeWatch = new System.Diagnostics.Stopwatch(); }