コード例 #1
0
        public void GetNewNotifications_NotificationIsForAnotherUser_DoesNotReturnNotification()
        {
            Notification notification = new Notification(
                new Gig {
                DateTime = DateTime.Now.AddDays(7), Venue = _venue
            },
                NotificationType.GigCreated);
            UserNotification userNotification = new UserNotification(_user, notification);

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

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

            result.Should().BeEmpty();
        }