Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 761 Bytes

File metadata and controls

20 lines (13 loc) · 761 Bytes

DapperParameters

Facade of Dappers DynamicParameters class to facilitate unit testing.

Available on NuGet

Blog post here

Define in your dependency injection tool of choice

  • Interface: IDapperParameters
  • Implementation: DapperParameters

SimpleInjector example:

container.Register<IDapperParameters, DapperParameters>(Lifestyle.Transient);

Use in conjunction with DapperWrapper

When used with DapperWrapper, it is possible to unit test your data layer.

Sample Unit Tests

Sample unit tests (and setups) are available in the source using Moq and SimpleInjector.