public void Setup()
        {
            _mockAuthenticationService = new Mock <INGTweetAuthenticationService>().Object;

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

            viewModel = new TweetActionViewModel(_mockAuthenticationService, _mockApplicationSettingsProvider);
        }
示例#2
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);
        }