Пример #1
0
        public void Setup()
        {
            DispatcherHelper.Initialize();

            _mockAuthenticationService       = new Mock <INGTweetAuthenticationService>().Object;
            _mockApplicationSettingsProvider = new Mock <IApplicationSettingsProvider>().Object;

            _viewModel = new MentionsViewModel(_mockAuthenticationService, _mockApplicationSettingsProvider);
        }
Пример #2
0
        private void Mentions_Loaded(object sender, System.Windows.RoutedEventArgs e)
        {
            MentionsViewModel viewModel = DataContext as MentionsViewModel;

            if (viewModel != null)
            {
                viewModel.GetTweetsMentioningMe();
            }
        }
Пример #3
0
        public ViewModelLocator()
        {
            NGTweetAuthenticationServiceClient authenticationService = new NGTweetAuthenticationServiceClient();

            NGApplicationSettingsProvider settingsProvider = new NGApplicationSettingsProvider();

            mainViewModel = new MainViewModel(authenticationService, settingsProvider);

            timeLineViewModel = new TimeLineViewModel(authenticationService, settingsProvider);

            mentionsViewModel = new MentionsViewModel(authenticationService, settingsProvider);

            tweetActionViewModel = new TweetActionViewModel(authenticationService, settingsProvider);
        }