Example #1
0
        internal static IDataReader CreateValidVocabulariesReader(int count)
        {
            DataTable table = CreateVocabularyTable();

            for (int i = Constants.VOCABULARY_ValidVocabularyId; i < Constants.VOCABULARY_ValidVocabularyId + count; i++)
            {
                string name        = (count == 1) ? Constants.VOCABULARY_ValidName : ContentTestHelper.GetVocabularyName(i);
                int    typeId      = Constants.VOCABULARY_SimpleTypeId;
                string description = (count == 1) ? Constants.VOCABULARY_ValidName : ContentTestHelper.GetVocabularyName(i);
                int    weight      = Constants.VOCABULARY_ValidWeight;
                AddVocabularyToTable(table, i, typeId, name, description, Constants.VOCABULARY_ValidScopeId, Constants.VOCABULARY_ValidScopeTypeId, weight);
            }

            return(table.CreateDataReader());
        }