コード例 #1
0
ファイル: LoginSteps.cs プロジェクト: xtravirt/YouTrack.Rest
        public void WhenIAuthenticateWith(string login, string password, string baseUrl)
        {
            StepHelper.InitializeYouTrackClient(baseUrl, login, password);

            try
            {
                StepHelper.GetSession().Login();
            }
            catch (RequestFailedException e)
            {
                Console.WriteLine("Exception catched: {0}", e);
            }
        }
コード例 #2
0
ファイル: LoginSteps.cs プロジェクト: xtravirt/YouTrack.Rest
 public void ThenIAmNotAuthenticated()
 {
     Assert.IsFalse(StepHelper.GetSession().IsAuthenticated);
 }
コード例 #3
0
ファイル: LoginSteps.cs プロジェクト: xtravirt/YouTrack.Rest
 public void ThenIAmAuthenticated()
 {
     Assert.IsTrue(StepHelper.GetSession().IsAuthenticated);
 }