public void SetUp()
        {
            var subject   = new UserSessionService(null, null, null);
            var userToken = subject.NewUser();

            _result = subject.IsLoggedIn(userToken);
        }
コード例 #2
0
        public void SetUp()
        {
            var subject = new UserSessionService(null, null, null);

            subject.NewUser();

            _result = subject.IsLoggedIn(Guid.NewGuid().ToString());
        }
コード例 #3
0
        public void SetUp()
        {
            var subject   = new UserSessionService(null, null, null);
            var userToken = subject.NewUser();

            subject.LogIn("NOT_A_VALID_GUID", 1);

            _result = subject.IsLoggedIn(userToken);
        }
コード例 #4
0
 public void ThenTheUserIsNotLoggedOut()
 {
     Assert.That(_subject.IsLoggedIn(_userToken), Is.True);
 }
コード例 #5
0
        public void SetUp()
        {
            var subject = new UserSessionService(null, null, null);

            _result = subject.IsLoggedIn("NOT_A_VALID_GUID");
        }