Facade of Dappers DynamicParameters class to facilitate unit testing.
Available on NuGet
Blog post here
- Interface: IDapperParameters
- Implementation: DapperParameters
SimpleInjector example:
container.Register<IDapperParameters, DapperParameters>(Lifestyle.Transient);
When used with DapperWrapper, it is possible to unit test your data layer.
Sample unit tests (and setups) are available in the source using Moq and SimpleInjector.