Exemplo n.º 1
0
        public void ThenISeeMyNotes()
        {
            var holdUserInfo = SystemEnterTester.userInfo;

            notes = TestingContext.GetFrontServiceClient().GetNotes(holdUserInfo.Account.Id);
            Assert.True(notes.Count > 0);
        }
Exemplo n.º 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;
     }
 }
Exemplo n.º 3
0
        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.");
            }
        }
Exemplo n.º 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);
 }
Exemplo n.º 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);
        }
Exemplo n.º 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);
 }
Exemplo n.º 7
0
 public void DisconnectFromTheService()
 {
     TestingContext.GetFrontServiceClient().Disconnect();
 }
Exemplo n.º 8
0
        public void ConnectTheService()
        {
            string serviceUrl = "http://46.98.190.16:5001/ServerHub";

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