コード例 #1
0
ファイル: LoginTests.cs プロジェクト: nmetulev/Modern-Gitter
        private void TestInitialize(ISessionService sessionService)
        {
            _navigationService = new FakeNavigationService();
            _sessionService = sessionService;
            _passwordStorageService = new FakePasswordStorageService();
            _localNotificationService = new FakeLocalNotificationService();
            _telemetryService = new FakeTelemetryService();

            _telemetryService.Initialize();

            _loginViewModel = new LoginViewModel(
                _navigationService,
                _sessionService,
                _passwordStorageService,
                _localNotificationService,
                _telemetryService);
        }
コード例 #2
0
ファイル: MainTests.cs プロジェクト: nmetulev/Modern-Gitter
        public void TestInitialize()
        {
            _gitterApiService = new FakeGitterApiServiceWithResult();
            _localNotificationService = new FakeLocalNotificationService();
            _applicationStorageService = new FakeApplicationStorageService();
            _progressIndicatorService = new FakeProgressIndicatorService();
            _passwordStorageService = new FakePasswordStorageService();
            _eventService = new EventService();
            _telemetryService = new FakeTelemetryService();
            _navigationService = new FakeNavigationService();

            _mainViewModel = new MainViewModel(
                _gitterApiService,
                _localNotificationService,
                _applicationStorageService,
                _progressIndicatorService,
                _passwordStorageService,
                _eventService,
                _telemetryService,
                _navigationService);
        }