Ninja-Squad / DbSetup

An API for populating a database in unit tests
http://dbsetup.ninja-squad.com/
212 stars 34 forks source link

Add static builder in destination implementations #25

Closed hasalex closed 11 years ago

hasalex commented 11 years ago

It would be nice to have builder methods on destinations.

I find the first way to initialize DbSetup nicer than the second one :

  DbSetup dbSetup = new DbSetup(to(dataSource), operation);
  DbSetup dbSetup = new DbSetup(new DataSourceDestination(dataSource), operation);
hasalex commented 11 years ago

Oups, j'ai merdé le PR. Je recommence...