private void Disconnect() { _receivedEvents.Clear(); _connection.Disconnect(); sleepModifier(1000); Assert.Equal(ServerStates.Disconnected, _connection.GetActServerState()); _connection.Disconnect(); _connection = null; }
public void TestonnectWrongAdress() { PrepareFirstServerConnector(); _connection.Connect("127.0.0.2", Port); System.Threading.Thread.Sleep(5500); Assert.NotNull(_connection); Assert.Equal(ServerStates.RetryWaiting, _connection.GetActServerState()); _connection.Disconnect(); _connection = null; }
public void TestConnect() { PrepareFirstServerConnector(); _connection.Connect(Url, Port); sleepModifier(250); Assert.NotNull(_connection); Assert.Equal(ServerStates.Connected, _connection.GetActServerState()); _connection.Disconnect(); _connection = null; }
public ServusFacebookTest(ITestOutputHelper output) { this._output = output; this._connection = new ServerConnectorStandardLIB.ServerConnector("../../../conf/facebook/server.json"); this._facebookLogin = new ServusFacebook.ServusFacebook("../../../conf/facebook/facebookLogin.json"); this._facebookLogin.Settings.Autologin = false; _receivedEvents = new List <FbStates>(); _facebookLogin.FbLoginStatesChanged += (FbStates fBLoginStates) => { _receivedEvents.Add(fBLoginStates); }; }
public ServusEmailTest(ITestOutputHelper output) { this._output = output; this._connection = new ServerConnectorStandardLIB.ServerConnector("../../..//conf/email/server.json"); this._emailLogin = new ServusEmailLogin("../../../conf/email/emailLogin.json"); this._emailLogin.Settings.Autologin = false; _receivedEvents = new List <EmailLoginStates>(); _emailLogin.EmailLoginStatesChanged += (EmailLoginStates emailState) => { _receivedEvents.Add(emailState); }; }
private void PrepareFirstServerConnector() { _connection = new ServerConnectorStandardLIB.ServerConnector("../../../conf/single/server.json"); }