public void IsLoggedIn_Returns_True_If_UserAccessor_User_Identity_IsAuthenticated_IsTrue()
        {
            var identity = new GenericIdentity("test");

            Assert.True(identity.IsAuthenticated);
            var userAccessor = new FakeUserAccessor(() => new ClaimsPrincipal(identity));

            Assert.True(userAccessor.IsLoggedIn());
        }
        public void IsLoggedIn_Returns_False_If_UserAccessor_User_Identity_IsAuthenticated_IsFalse()
        {
            var identity = new ClaimsIdentity();

            Assert.False(identity.IsAuthenticated);
            var userAccessor = new FakeUserAccessor(() => new ClaimsPrincipal(identity));

            Assert.False(userAccessor.IsLoggedIn());
        }
        public void IsLoggedIn_Returns_False_If_UserAccessor_User_Identity_IsNull()
        {
            var userAccessor = new FakeUserAccessor(() => new ClaimsPrincipal());

            Assert.False(userAccessor.IsLoggedIn());
        }
        public void IsLoggedIn_Returns_False_If_UserAccessor_User_Property_IsNull()
        {
            var userAccessor = new FakeUserAccessor(() => null);

            Assert.False(userAccessor.IsLoggedIn());
        }