public StillThereViewModelTests() { _viewModel = new StillThereViewModel(new BlueUser(), ClassificationPanelViewModelTests.MockClassificationPanel()); }
public ClassificationSummaryViewModelTests() { NotificationsViewModel notifications = new NotificationsViewModel(new BlueUser(), ClassificationPanelViewModelTests.MockClassificationPanel()); _viewModel = new ClassificationSummaryViewModel(notifications); }
public LevelerViewModelTests() { var User = GlobalData.GetInstance().BlueUser; _viewModel = new LevelerViewModel(User, ClassificationPanelViewModelTests.MockClassificationPanel()); }
public CloseConfirmationViewModelTests() { _viewModel = new CloseConfirmationViewModel(new BlueUser(), ClassificationPanelViewModelTests.MockClassificationPanel()); }
public ExamplesPanelViewModelTests() { var user = GlobalData.GetInstance().BlueUser; _viewModel = new ExamplesPanelViewModel(user, ClassificationPanelViewModelTests.MockClassificationPanel()); }
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); }
public NotificationsViewModelTests() { _viewModel = new NotificationsViewModel(BlueUser, ClassificationPanelViewModelTests.MockClassificationPanel()); }