Moq.DataReader 0.2.0

Moq extension to mock DbDataReader with a list

Install-Package Moq.DataReader -Version 0.2.0
dotnet add package Moq.DataReader --version 0.2.0
<PackageReference Include="Moq.DataReader" Version="0.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Moq.DataReader --version 0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

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

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

  • .NETCoreApp 2.0

    • Moq (>= 4.8.0)

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.2.0 548 5/8/2018
0.1.1 605 1/8/2018
0.1.0 300 1/7/2018