Last active
September 14, 2017 07:59
-
-
Save mr5z/d93808c615f74da0c929ebe2219b40e3 to your computer and use it in GitHub Desktop.
how to elegantly refactor this?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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