Beispiel #1
0
 public ServerCenter()
 {
     mUnitTestPath = AppDomain.CurrentDomain.BaseDirectory + @"UnitTest" + System.IO.Path.DirectorySeparatorChar;
     Loger         = new LogHandlerAdapter();
     TimeWatch     = new System.Diagnostics.Stopwatch();
     TimeWatch.Restart();
 }
Beispiel #2
0
 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();
 }
Beispiel #3
0
 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();
 }