Skip to content
This repository has been archived by the owner on Aug 29, 2021. It is now read-only.
/ Moq.DataReader Public archive

Moq extension to mock IDataReader with a List<T>

License

Notifications You must be signed in to change notification settings

verdie-g/Moq.DataReader

Repository files navigation

IDataReader extension for Moq

Usage

var data = new List<T>() { ... };
var mock = new Mock<IDataReader>();
mock.SetupDataReader(data);
IDataReader r = mock.Object;

Not implemented

These methods are not implemented and will return default value:

  • Depth
  • RecordAffected