예제 #1
0
 public SuspendedStateSpecs(ITestOutputHelper output)
     : base(output)
 {
     _timer   = new FakeTimer();
     _context = new FakeConnectionContext();
     _state   = GetState();
 }
예제 #2
0
 public DisconectedStateSpecs(ITestOutputHelper output) : base(output)
 {
     _context        = new FakeConnectionContext();
     _connectionInfo = new ConnectionInfo("", 0, "", "");
     _timer          = new FakeTimer();
     _state          = GetState();
 }
예제 #3
0
        public InitializedStateSpecs(ITestOutputHelper output)
            : base(output)
        {
            var context = new FakeConnectionContext();

            _state = new ConnectionInitializedState(context, Logger);
        }
예제 #4
0
 public ConnectingStateSpecs(ITestOutputHelper output)
     : base(output)
 {
     _context = new FakeConnectionContext();
     _timer   = new FakeTimer();
     _state   = new ConnectionConnectingState(_context, _timer, Logger);
 }
예제 #5
0
        public ClosedStateSpecs(ITestOutputHelper output) : base(output)
        {
            var sink = new TestLoggerSink();

            _logger  = new IO.Ably.DefaultLogger.InternalLogger(Defaults.DefaultLogLevel, sink);
            _context = new FakeConnectionContext();
            _state   = new ConnectionClosedState(_context, _logger);
        }
예제 #6
0
 public FailedStateSpecs(ITestOutputHelper output) : base(output)
 {
     _context = new FakeConnectionContext();
     _state   = GetState();
 }
예제 #7
0
 public ClosedStateSpecs(ITestOutputHelper output) : base(output)
 {
     _context = new FakeConnectionContext();
     _state   = new ConnectionClosedState(_context);
 }