Пример #1
0
 public FrameTestsBase()
 {
     Services = new FakeServices();
     App = new FakeApp();
     Output = new FakeOutput();
     Input = new FakeInput();
     Frame = new Frame(
         new FrameContext
         {
             Services = Services,
             App = App.Call,
             Write = Output.Write,
             Flush = Output.Flush,
             End = Output.End,
         });
     Input.Consume = (baton, callback) => Frame.Consume(baton, (frame, ex) => callback(ex));
 }
Пример #2
0
 public WriteSocketTests()
 {
     Services = new FakeServices();
     Socket = new FakeSocket();
     Sender = new SocketSender(Services, Socket);
 }