public UserProfileViewModel( ICommandFactory commandFactory, ICurrentUserProvider currentUserProvider, IUserFacade userFacade, INavigationService navigationService) { this.currentUserProvider = currentUserProvider; this.userFacade = userFacade; this.navigationService = navigationService; InitPasswordChangeModel(currentUserProvider.CurrentUser); LogoutCommand = commandFactory.CreateCommand(Logout); ChangePasswordCommand = commandFactory.CreateAsyncCommand(ChangePasswordAsync); }
public GameParticipationSetupViewModel( GameDTO viewModelParameter, ICommandFactory commandFactory, ICurrentUserProvider currentUserProvider, IUserFacade userFacade, IGameFacade gameFacade, INavigationService navigationService) : base(viewModelParameter) { this.currentUserProvider = currentUserProvider; this.userFacade = userFacade; this.gameFacade = gameFacade; this.navigationService = navigationService; StartGameCommand = commandFactory.CreateAsyncCommand(StartGameAsync); }