public void TestNotifyEveryRowAll(DataReaderSource source)
        {
            var r3 = TestDataHelpers.GetSampleDataReader(source, 100);

            var i = 0;

            var drr = r3.NotifyOn(p => i++, 1);

            drr.ReadToEnd();

            Assert.AreEqual(100, i); //two notifications
        }
        public void TestNotifyLastRow(DataReaderSource source)
        {
            var r3 = TestDataHelpers.GetSampleDataReader(DataReaderSource.DataTable, 100);
            //var r3 = GetADataReader(source, 3);

            var i = 0;
            var c = 0;

            var drr = r3.NotifyOn(p =>
            {
                i = p;
                c++;
            }, 1024);

            drr.ReadToEnd();

            Assert.AreEqual(100, i);
            Assert.AreEqual(1, c);
        }