public void testGetNumAnonymousUsers()
        {
            PlusAnonymousConcurrentUserDataModel instance = getTestableWithoutDelegateData(10);

            long anonymousUserID1 = instance.TakeAvailableUser().Value;

            IPreferenceArray tempPrefs1 = new GenericUserPreferenceArray(1);

            tempPrefs1.SetUserID(0, anonymousUserID1);
            tempPrefs1.SetItemID(0, 1);

            instance.SetTempPrefs(tempPrefs1, anonymousUserID1);

            // Anonymous users should not be included into the universe.
            Assert.AreEqual(0, instance.GetNumUsers());
        }
        public void testGetNumUsersWithDelegateUsersOnly()
        {
            IPreferenceArray prefs        = new GenericUserPreferenceArray(1);
            long             sampleUserID = 1;

            prefs.SetUserID(0, sampleUserID);
            long sampleItemID = 11;

            prefs.SetItemID(0, sampleItemID);

            FastByIDMap <IPreferenceArray> delegatePreferences = new FastByIDMap <IPreferenceArray>();

            delegatePreferences.Put(sampleUserID, prefs);

            PlusAnonymousConcurrentUserDataModel instance = getTestableWithDelegateData(10, delegatePreferences);

            Assert.AreEqual(1, instance.GetNumUsers());
        }