예제 #1
0
 public ConnectionTestsBase()
 {
     App = new FakeApp();
     Socket = new FakeSocket();
     Connection = new Connection(new FakeTrace(), App.Call, Socket, OnDisconnected);
     DisconnectedEvent = new ManualResetEvent(false);
 }
예제 #2
0
 public FrameTestsBase()
 {
     App = new FakeApp();
     Output = new FakeOutput();
     Input = new FakeInput();
     Frame = new Frame(App.Call, Output.ProduceData, Output.ProduceEnd);
     Input.Consume = Frame.Consume;
 }