Skip to content

Instantly share code, notes, and snippets.

@mr5z
Last active September 14, 2017 07:59
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 mr5z/d93808c615f74da0c929ebe2219b40e3 to your computer and use it in GitHub Desktop.
Save mr5z/d93808c615f74da0c929ebe2219b40e3 to your computer and use it in GitHub Desktop.
how to elegantly refactor this?
public SelectLocationMapViewModel(UserWithSafeZonesModel selectedUser,
bool enableLocationCountValidation,
IWebRequestManager webRequestManager,
IAccountService accountService,
IFollowMeService followMeService,
ILocationService locationService,
IDestinationService destinationService,
IKeyboardService keyboardService) :
this(null,
null,
enableLocationCountValidation,
webRequestManager,
accountService,
followMeService,
locationService,
destinationService,
keyboardService)
{
}
public SelectLocationMapViewModel(bool enableLocationCountValidation,
IWebRequestManager webRequestManager,
IAccountService accountService,
IFollowMeService followMeService,
ILocationService locationService,
IDestinationService destinationService,
IKeyboardService keyboardService) :
this(null,
null,
enableLocationCountValidation,
webRequestManager,
accountService,
followMeService,
locationService,
destinationService,
keyboardService)
{
}
public SelectLocationMapViewModel(FollowMeViewModel followMeViewModel,
IWebRequestManager webRequestManager,
IAccountService accountService,
IFollowMeService followMeService,
ILocationService locationService,
IDestinationService destinationService,
IKeyboardService keyboardService) :
this(null,
followMeViewModel,
false,
webRequestManager,
accountService,
followMeService,
locationService,
destinationService,
keyboardService)
{
}
public SelectLocationMapViewModel(FollowMeViewModel followMeViewModel,
bool enableLocationCountValidation,
IWebRequestManager webRequestManager,
IAccountService accountService,
IFollowMeService followMeService,
ILocationService locationService,
IDestinationService destinationService,
IKeyboardService keyboardService) :
this(null,
followMeViewModel,
enableLocationCountValidation,
webRequestManager,
accountService,
followMeService,
locationService,
destinationService,
keyboardService)
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment