public StillThereViewModelTests()
 {
     _viewModel = new StillThereViewModel(new BlueUser(), ClassificationPanelViewModelTests.MockClassificationPanel());
 }
        public ClassificationSummaryViewModelTests()
        {
            NotificationsViewModel notifications = new NotificationsViewModel(new BlueUser(), ClassificationPanelViewModelTests.MockClassificationPanel());

            _viewModel = new ClassificationSummaryViewModel(notifications);
        }
Beispiel #3
0
        public LevelerViewModelTests()
        {
            var User = GlobalData.GetInstance().BlueUser;

            _viewModel = new LevelerViewModel(User, ClassificationPanelViewModelTests.MockClassificationPanel());
        }
 public CloseConfirmationViewModelTests()
 {
     _viewModel = new CloseConfirmationViewModel(new BlueUser(), ClassificationPanelViewModelTests.MockClassificationPanel());
 }
Beispiel #5
0
        public ExamplesPanelViewModelTests()
        {
            var user = GlobalData.GetInstance().BlueUser;

            _viewModel = new ExamplesPanelViewModel(user, ClassificationPanelViewModelTests.MockClassificationPanel());
        }
Beispiel #6
0
        void NotifyWhenUserHasAnswered()
        {
            NotificationsViewModel PinkNotifier = new NotificationsViewModel(PinkUser, ClassificationPanelViewModelTests.MockClassificationPanel());

            PinkUser.Active = true;
            _viewModel.OnSubjectStatusChange(true);
            _viewModel.ReceivedNewSubject(PanoptesServiceMockData.TableSubject());
            _viewModel.NotifyUser.Execute(PinkUser);
            PinkNotifier.AcceptGalaxy.Execute(null);
            PinkNotifier.HandleAnswer(PanoptesServiceMockData.CompletedClassification());
            Assert.NotNull(_viewModel.Overlay);
            Assert.Equal("Check it out,", _viewModel.Overlay.MessageOne);
            Assert.Equal("made a classification!", _viewModel.Overlay.MessageTwo);
            Assert.NotNull(_viewModel.NotificationPanel);
            Assert.Equal(NotificationPanelStatus.ShowAnswer, _viewModel.NotificationPanel.Status);
        }
Beispiel #7
0
 public NotificationsViewModelTests()
 {
     _viewModel = new NotificationsViewModel(BlueUser, ClassificationPanelViewModelTests.MockClassificationPanel());
 }