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

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

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

            _viewModel = new ExamplesPanelViewModel(user, ClassificationPanelViewModelTests.MockClassificationPanel());
        }
예제 #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);
        }
예제 #7
0
 public NotificationsViewModelTests()
 {
     _viewModel = new NotificationsViewModel(BlueUser, ClassificationPanelViewModelTests.MockClassificationPanel());
 }