Exemplo n.º 1
0
 public void Setup()
 {
     _cbs             = new MockSmartCallbacks();
     _bareSock        = new MockSock();
     _bufferPool      = new MockBufferPool();
     _threadSmartSock = new ThreadSmartSock(_bufferPool, _bareSock, _cbs);
 }
Exemplo n.º 2
0
 public void Setup()
 {
     _bufferPool = new MockBufferPool();
     _sock       = new ThreadSock(_bufferPool, AddressFamily.InterNetwork, new LoggerStub());
 }
Exemplo n.º 3
0
 public void Setup()
 {
     _logger     = Substitute.For <ILogger>();
     _bufferPool = new MockBufferPool();
     _sock       = new BareSock(_bufferPool, AddressFamily.InterNetwork, _logger);
 }