Ejemplo n.º 1
0
        public void GetNewNotifications_NotificationIsRead_DoesNotReturnNotification()
        {
            Notification notification = new Notification(
                new Gig {
                DateTime = DateTime.Now.AddDays(7), Venue = _venue
            },
                NotificationType.GigCreated);
            UserNotification userNotification = new UserNotification(_user, notification);

            userNotification.MarkRead();
            _userNotifications.SetSource(new[] { userNotification });

            var result = _repository.GetNewNotifications(_user.Id);

            result.Should().BeEmpty();
        }