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

            for (int i = Constants.SCOPETYPE_ValidScopeTypeId; i < Constants.SCOPETYPE_ValidScopeTypeId + count; i++)
            {
                string scopeType = (count == 1) ? Constants.SCOPETYPE_ValidScopeType : ContentTestHelper.GetScopeType(i);

                AddScopeTypeToTable(table, i, scopeType);
            }

            return(table.CreateDataReader());
        }