示例#1
0
 public ConnectionTestsBase()
 {
     App = new FakeApp();
     Socket = new FakeSocket();
     Connection = new Connection(new FakeServices(), App.Call, Socket, OnDisconnected);
     DisconnectedEvent = new ManualResetEvent(false);
 }
示例#2
0
 public NewTests()
 {
     _app = env => TaskHelpers.Completed();
     _socket = new FakeSocket();
     _services = new FakeServices();
     _connection = new Connection(_services, Invoke, _socket, Disconnect);
     _connection.Execute();
 }