Example #1
0
		public void Setup() {
			this.networkContext = new NetworkContextMock ();
            this.networkContext.mockSocketCreated = ms =>
            {
                ms.allowBind = true;
                this.torchSocket = ms;
            };
			this.target = new Agora(networkContext);
		}
 private ISocket CreateMockSocket(bool beResponse)
 {
     var res = new MockSocket(beResponse);
     if (mockSocketCreated != null)
     {
         mockSocketCreated(res);
     }
     return res;
 }