コード例 #1
0
        public TM_UserData_InMemory()
        {
            userData = new TM_UserData();

            1.set_DEFAULT_PBKDF2_INTERACTIONS();                    // improve performance of tests that create users
            SendEmails.Disable_EmailEngine = true;                  // Disable Email engine by default

            // check the TM_UserData
            Assert.IsEmpty(userData.validSessions() , "There should be no sessions");
            Assert.IsEmpty(userData.TMUsers         , "There should be no users");
        }
コード例 #2
0
        public static TM_UserData resetAllSessions(this TM_UserData userData)
        {
            var sessionIDs = userData.validSessions();

            foreach (var sessionID in sessionIDs)
            {
                var tmUser = sessionID.session_TmUser();
                tmUser.remove_Session(sessionID);
            }
            return(userData);
        }