private static void AddRows(DataSet <SimpleModel> dataSet, int count, RowValueType rowValueType)
        {
            var _ = dataSet._;

            for (int i = 0; i < count; i++)
            {
                var dataRow = dataSet.AddRow();
                int ordinal = dataRow.Ordinal;
                _.Id[dataRow] = ordinal;
                if (i % count == 1)
                {
                    SetDataRowValues(_, dataRow, null);
                }
                else if (rowValueType == RowValueType.Default)
                {
                    SetDataRowValues(_, dataRow, ordinal);
                }
                else if (rowValueType == RowValueType.Sum)
                {
                    SetDataRowValues(_, dataRow, 1);
                }
                else if (rowValueType == RowValueType.Average)
                {
                    SetDataRowValues(_, dataRow, 2);
                }
            }
        }
 private static DataSet <SimpleModel> GetDataSet(int count, RowValueType rowValueType)
 {
     return(SimpleModelBase.GetDataSet <SimpleModel>(count, x => x.Child, (d, c) => AddRows(d, c, rowValueType)));
 }