public SocketReceiveAsyncBehaviorTests()
 {
     _server = new Pair0Socket();
     _server.Listen(Url);
     _client = new Pair0Socket();
     _client.Dial(Url);
     _behavior = new SocketReceiveAsyncBehavior(_server);
 }
Exemplo n.º 2
0
 public SocketSendBehaviorTests()
 {
     _server = new Pair0Socket();
     _server.Listen(Url);
     _client = new Pair0Socket();
     _client.Dial(Url);
     _behavior = new SocketSendBehavior(_client);
 }
Exemplo n.º 3
0
 public AsyncContextTests()
 {
     _server = new Pair0Socket();
     _server.Listen(Url);
     _client = new Pair0Socket();
     _client.Dial(Url);
     _serverAsyncContext = new AsyncContext(_server);
     _clientAsyncContext = new AsyncContext(_client);
 }