Ejemplo n.º 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));
 }
Ejemplo n.º 2
0
 public WriteSocketTests()
 {
     Services = new FakeServices();
     Socket = new FakeSocket();
     Sender = new SocketSender(Services, Socket);
 }