Skip to content
This repository was archived by the owner on Jun 28, 2023. It is now read-only.

Latest commit

 

History

History
15 lines (12 loc) · 293 Bytes

File metadata and controls

15 lines (12 loc) · 293 Bytes

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