Ejemplo n.º 1
0
 public ConnectionTestsBase()
 {
     App = new FakeApp();
     Socket = new FakeSocket();
     Connection = new Connection(new FakeServices(), App.Call, Socket, OnDisconnected);
     DisconnectedEvent = new ManualResetEvent(false);
 }
Ejemplo n.º 2
0
 public NewTests()
 {
     _app = env => TaskHelpers.Completed();
     _socket = new FakeSocket();
     _services = new FakeServices();
     _connection = new Connection(_services, Invoke, _socket, Disconnect);
     _connection.Execute();
 }
Ejemplo n.º 3
0
 public WriteSocketTests()
 {
     Services = new FakeServices();
     Socket = new FakeSocket();
     Sender = new SocketSender(Services, Socket);
 }