NuGet Package DbMocker

This .NET library simplifies data mocking for UnitTests, to avoid a connection to a relational database.
DbMocker use the standard Microsoft .NET DbConnection object.

So, you can mock any toolkit,
including EntityFramework, Dapper or ADO.NET; And for all database servers (SQL Server, Oracle, SQLite).

var conn = new MockDbConnection();
conn.Mocks.WhenAny()..ReturnsScalar(14);.

Info

Version: 1.5.0
Author(s): Denis Voituron
Last Update: Sunday, September 2, 2018
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/Apps72/DbMocker
NuGet Url: https://www.nuget.org/packages/DbMocker


Install
Install-Package DbMocker
dotnet add package DbMocker
paket add DbMocker
DbMocker Download (Unzip the "nupkg" after downloading)



Tags



STATS

must-have-score

1.8

avg-downloads-per-day

4

days-since-last-release

228