public SuspendedStateSpecs(ITestOutputHelper output) : base(output) { _timer = new FakeTimer(); _context = new FakeConnectionContext(); _state = GetState(); }
public DisconectedStateSpecs(ITestOutputHelper output) : base(output) { _context = new FakeConnectionContext(); _connectionInfo = new ConnectionInfo("", 0, "", ""); _timer = new FakeTimer(); _state = GetState(); }
public InitializedStateSpecs(ITestOutputHelper output) : base(output) { var context = new FakeConnectionContext(); _state = new ConnectionInitializedState(context, Logger); }
public ConnectingStateSpecs(ITestOutputHelper output) : base(output) { _context = new FakeConnectionContext(); _timer = new FakeTimer(); _state = new ConnectionConnectingState(_context, _timer, Logger); }
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); }
public FailedStateSpecs(ITestOutputHelper output) : base(output) { _context = new FakeConnectionContext(); _state = GetState(); }
public ClosedStateSpecs(ITestOutputHelper output) : base(output) { _context = new FakeConnectionContext(); _state = new ConnectionClosedState(_context); }