Exemple #1
0
        public void ThenISeeMyNotes()
        {
            var holdUserInfo = SystemEnterTester.userInfo;

            notes = TestingContext.GetFrontServiceClient().GetNotes(holdUserInfo.Account.Id);
            Assert.True(notes.Count > 0);
        }
Exemple #2
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.");
            }
        }
Exemple #4
0
 public void MyNoteIsChanged()
 {
     try
     {
         var holdUserInfo = SystemEnterTester.userInfo;
         TestingContext.GetFrontServiceClient().EditNote(newNote);
     }
     catch (Exception ex)
     {
         TestingContext.LastException = ex;
     }
     Assert.That(TestingContext.LastException == null);
 }
Exemple #5
0
        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);
        }
Exemple #6
0
 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);
 }
Exemple #7
0
 public void DisconnectFromTheService()
 {
     TestingContext.GetFrontServiceClient().Disconnect();
 }
Exemple #8
0
        public void ConnectTheService()
        {
            string serviceUrl = "http://46.98.190.16:5001/ServerHub";

            TestingContext.GetFrontServiceClient().Connect(serviceUrl);
        }