public ProfilesSubscriptionsHandler(
     ILogger <ProfilesSubscriptionsHandler> logger,
     IProfilesManager profilesManager
     )
 {
     _logger          = logger;
     _profilesManager = profilesManager;
 }
Example #2
0
        public ProfilesManagerTests()
        {
            var notificationsRepositoryMock = new MongoRepositoryMockFactory <ProfileEntity>(_notificationEntities)
                                              .GetInstance();

            _manager = new ProfilesManager(
                new Mock <ILogger <ProfilesManager> >().Object,
                new ProfilesService(notificationsRepositoryMock.Object)
                );
        }
Example #3
0
        public RegisterViewModel(
            IAuthenticationManager authenticationManager,
            IProfilesManager profilesManager)
        {
            _authenticationManager = authenticationManager;
            _profilesManager       = profilesManager;

            RegisterCommand = new RelayCommand(Register);
            IsBusy          = false;
        }
Example #4
0
        public PeopleListViewModel(
            IProfilesManager profilesManager,
            IPreferencesService preferencesService)
        {
            _profilesManager         = profilesManager;
            _customNavigationService = ServiceLocator.Current.GetInstance <ICustomNavigationService>("PeopleInternal");

            _currentUser = preferencesService.User;

            LoadData();
        }
Example #5
0
        public ProfileMainViewModel(
            IProfilesManager profilesManager,
            IPreferencesService preferencesService)
        {
            _profilesManager         = profilesManager;
            _preferencesService      = preferencesService;
            _customNavigationService = ServiceLocator.Current.GetInstance <ICustomNavigationService>("ProfileInternal");

            EditCommand = new RelayCommand(EditProfile);

            InitData();
        }
        public FriendsListViewModel(
            IProfilesManager profilesManager,
            IFriendsManager friendsManager,
            IPreferencesService preferencesService)
        {
            _profilesManager         = profilesManager;
            _friendsManager          = friendsManager;
            _preferencesService      = preferencesService;
            _customNavigationService = ServiceLocator.Current.GetInstance <ICustomNavigationService>("PeopleInternal");

            _currentUser = preferencesService.User;

            RemoveFriendCommand = new RelayCommand <string>(RemoveFriend);

            LoadData();
        }
        public PeopleProfileViewModel(
            IProfilesManager profilesManager,
            IFriendsManager friendsManager,
            IPreferencesService preferencesService)
        {
            _profilesManager    = profilesManager;
            _friendsManager     = friendsManager;
            _preferencesService = preferencesService;

            _customNavigationService = ServiceLocator.Current.GetInstance <ICustomNavigationService>("PeopleInternal");
            _personProfileId         = (string)_customNavigationService.CurrentPageParams;

            _profile = preferencesService.Profile;

            LoadProfile();
        }
Example #8
0
        public LoginViewModel(
            IAuthenticationManager authenticationManager,
            IProfilesManager profilesManager,
            IPreferencesService preferencesService)
        {
            _authenticationManager = authenticationManager;
            _profilesManager       = profilesManager;
            _preferencesService    = preferencesService;

            preferencesService.Clear();

            LoginCommand            = new RelayCommand(Login);
            NavigateToSignUpCommand = new RelayCommand(NavigateToSignUp);

            string defaultUsername = CustomNavigationService.CurrentPageParams?.ToString() ?? "";

            Username = defaultUsername;
            IsBusy   = false;
        }
        public ProfileEditViewModel(
            IProfilesManager profilesManager,
            IPreferencesService preferencesService)
        {
            _profilesManager    = profilesManager;
            _preferencesService = preferencesService;

            var customNavigationService = ServiceLocator.Current.GetInstance <ICustomNavigationService>("ProfileInternal");
            var profile = customNavigationService.CurrentPageParams as ProfileModel;

            Profile         = profile ?? new ProfileModel();
            BirthDateOffset = profile != null ? Profile.BirthDate : DateTime.Now;

            PageText = profile == null ? "Creating Profile" : "Editing Profile";

            SaveChangesCommand = profile != null
                ? new RelayCommand(UpdateProfile)
                : new RelayCommand(CreateProfile);

            InitData();
        }
 public PairingsController(IProfilesManager profilesManager,
                           IPairingsManager pairingsManager)
 {
     _profilesManager = profilesManager;
     _pairingsManager = pairingsManager;
 }
Example #11
0
 public ProfilesController(IProfilesManager profilesManager,
                           IMatchesManager matchesManager)
 {
     _profilesManager = profilesManager;
     _matchesManager  = matchesManager;
 }