void ShouldNotifyIfUserAlreadySeen() { Messenger.Default.Send(PanoptesServiceMockData.CompletedClassification(), "PinkUser_AddCompletedClassification"); PinkUser.Active = true; _viewModel.ReceivedNewSubject(PanoptesServiceMockData.TableSubject()); _viewModel.OnSubjectStatusChange(true); NotificationAvatarViewModel PinkAvatar = _viewModel.AvailableUsers.Find(x => x.User.Name == "PinkUser"); _viewModel.NotifyUser.Execute(PinkUser); Assert.NotNull(_viewModel.Overlay); Assert.Equal("Sorry,", _viewModel.Overlay.MessageOne); Assert.Equal("has already classified that galaxy.", _viewModel.Overlay.MessageTwo); }
void ShouldFilterUserFromAvailableUsers() { NotificationAvatarViewModel Avatar = new NotificationAvatarViewModel(BlueUser); Assert.DoesNotContain(Avatar, _viewModel.AvailableUsers); }