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); } }
public void ThenIAmNotAuthenticated() { Assert.IsFalse(StepHelper.GetSession().IsAuthenticated); }
public void ThenIAmAuthenticated() { Assert.IsTrue(StepHelper.GetSession().IsAuthenticated); }