database-rider / database-rider

Database testing made easy!

Home Page:https://database-rider.github.io/database-rider

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow to indicate DataSet Replacers's instances instead of classes

arisnegro opened this issue · comments

The DataSetExecutor#createDataSet(...) and DataSetExecutor#compareCurrentDataSetWith(...) methods allow the use of replacer's, but to use that functionality it's needed to indicate the classes that inherit the Replacer interface.
Internally in DataSetExecutor#getReplacerInstances(...) the Replacer classes are instantiated.

It could be useful new DataSetExecutor#createDataSet(...) and DataSetExecutor#compareCurrentDataSetWith(...) methods with replacer's instances as input parameters (instead of classes). In that way the developers could use lambdas and inner classes as Replacers so the source code will be shortened and more readable.

Note: Replacer's documentation