public void Ctor_WHEN_User_Has_Null_Id_THEN_Sets_IsAuthenticated_To_False()
        {
            var user = new User();
            var identity = new JumbleblocksUserIdentity(user);

            identity.IsAuthenticated.ShouldBeFalse();
        }
        public void Ctor_WHEN_authenticationType_IS_ABC_THEN_Sets_AuthenticationType_Property_To_ABC()
        {
            const string AuthenticationType = "ABC";
            var identity = new JumbleblocksUserIdentity(new User(), AuthenticationType);

            identity.AuthenticationType.ShouldEqual(AuthenticationType);
        }
        public void Ctor_WHEN_User_Has_An_Id_THEN_Sets_IsAuthenticated_To_True()
        {
            var user = new User();
            user.SetProperty(u => u.Id, 1);

            var identity = new JumbleblocksUserIdentity(user);

            identity.IsAuthenticated.ShouldBeTrue();
        }
        public void Ctor_WHEN_User_Has_UserName_Joe_THEN_Name_Property_Returns_Joe()
        {
            const string UserName = "******";

            var user = new User { Username = UserName };
            user.SetProperty(u => u.Id, 1);

            var identity = new JumbleblocksUserIdentity(user);

            identity.Name.ShouldEqual(UserName);
        }