Skip to content

Instantly share code, notes, and snippets.

@jsonmez
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsonmez/d7980da6c98aa9cabe5d to your computer and use it in GitHub Desktop.
Save jsonmez/d7980da6c98aa9cabe5d to your computer and use it in GitHub Desktop.
Reduced parameter count customer API
public void LoginAsCustomer(LoginInfo loginInfo, string customerType, int numberOfTries)
{
// ...
}
var loginInfo = new LoginInfo("Darth Vader", "ihatewookes");
LoginAsCustomer(loginInfo, "New Customer", 3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment