developwithpassion.specifications icon indicating copy to clipboard operation
developwithpassion.specifications copied to clipboard

1) Fix compilation, 2) Extend depends.on with by name

Open SeanMBe opened this issue 11 years ago • 0 comments

  1. Fix compilation (In examples project:) a) Include packages.config b) Use same versions in packages.config as other projects c) Change hint paths to thoses packages\ versions

  2. Extend depends.on to work with by name a) The use case is if you have constructor with parameter of same type, and want to specify different values in the automatic construction.

Example: class NetworkSwitchClient { public NetworkSwitchClient(string username, string password, ITelnetClient telnetClient) { ... } } spec... Establish e = () => { depends.on("admin", "username"); depends.on("", "password"); }

SeanMBe avatar Jun 02 '13 15:06 SeanMBe