views:

39

answers:

1

Hi,

I have a winforms app which performs actions (logging into a site and performing UI tests), but with a number of selected options such as logging in via basic auth or normal forms auth, as well as the browser type, etc.

Is the specification design pattern best suited to this? Are there any other good strategies?

Thanks

+1  A: 

It seems the best design pattern for you is Strategy. Have all the varied parts in an external configuration, and then your program should read the configuration at boot, and init just the chosen options according to the configuration.

David Rabinowitz