public void ThenISeeMyNotes() { var holdUserInfo = SystemEnterTester.userInfo; notes = TestingContext.GetFrontServiceClient().GetNotes(holdUserInfo.Account.Id); Assert.True(notes.Count > 0); }
public void ConnectWrongService() { try { string serviceUrl = "http://46.98.190.16:5001/ServerHub" + "x"; TestingContext.GetFrontServiceClient().Connect(serviceUrl); } catch (Exception ex) { TestingContext.LastException = ex; } }
public void ExitTheSystem() { // In the result we have assigned userInfo and his active accountInfo in User and Account contexts. Task result = TestingContext.GetFrontServiceClient().Logout(); Thread.Sleep(100); if (result.IsCompleted != false) { throw new Exception("Exit is not ok."); } }
public void MyNoteIsChanged() { try { var holdUserInfo = SystemEnterTester.userInfo; TestingContext.GetFrontServiceClient().EditNote(newNote); } catch (Exception ex) { TestingContext.LastException = ex; } Assert.That(TestingContext.LastException == null); }
public void ExitTheSystem() { // In the result we have assigned userInfo and his active accountInfo in User and Account contexts. try { Task result = TestingContext.GetFrontServiceClient().Logout(); Thread.Sleep(100); } catch (Exception ex) { TestingContext.LastException = ex; } Assert.That(TestingContext.LastException == null); }
public void EnterTheSystem(string login, string password) { // In the result we have assigned userInfo and his active accountInfo in User and Account contexts. userInfo = TestingContext.GetFrontServiceClient().Login("login", "pass"); Thread.Sleep(100); }
public void DisconnectFromTheService() { TestingContext.GetFrontServiceClient().Disconnect(); }
public void ConnectTheService() { string serviceUrl = "http://46.98.190.16:5001/ServerHub"; TestingContext.GetFrontServiceClient().Connect(serviceUrl); }