示例#1
0
 protected WampCraPlayground(IWampFormatter <TMessage> formatter,
                             MockConnectionListener <TMessage> listener,
                             WampCraAuthenticaticatorBuilder <TMessage> craAuthenticaticatorBuilder) :
     this(formatter, listener,
          new WampCraHost <TMessage>(listener, formatter, craAuthenticaticatorBuilder))
 {
 }
示例#2
0
 public MockTransport(MockConnectionListener <TMessage> listener)
 {
     mListener = listener;
 }
 public void WhenTheConnectionIsLost()
 {
     MockConnectionListener.Raise(listener => listener.ConnectionLost += null, new ConnectionLostEventArgs(Connection));
 }
 public void WhenAConnectionIsEstablished()
 {
     Connection = new FakeConnection();
     MockConnectionListener.Raise(listener => listener.ConnectionEstablished += null, new ConnectionEstablishedEventArgs(Connection));
 }
示例#5
0
 protected WampCraPlayground(IWampFormatter <TMessage> formatter, MockConnectionListener <TMessage> listener, IWampHost host) : base(formatter, listener, host)
 {
 }