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)

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Moq.DataReader:

Repository Stars
verdie-g/StoredProcedureEFCore
Entity Framework Core extension to execute stored procedures

Version History

Version Downloads Last updated
0.2.0 1,537 5/8/2018
0.1.1 904 1/8/2018
0.1.0 397 1/7/2018