public NotificationCreatedEventHandlerTests()
        {
            context = new TestIwsContext();

            var notification = NotificationApplicationFactory.Create(Guid.Empty, NotificationType.Recovery,
                UKCompetentAuthority.England, 0);
            EntityHelper.SetEntityId(notification, notificationId);

            message = new NotificationCreatedEvent(notification);
            handler = new NotificationCreatedEventHandler(context);
        }
        public NotificationCreatedEventHandlerTests()
        {
            context = new TestIwsContext();

            var notification = NotificationApplicationFactory.Create(Guid.Empty, NotificationType.Recovery,
                                                                     UKCompetentAuthority.England, 0);

            EntityHelper.SetEntityId(notification, notificationId);

            message = new NotificationCreatedEvent(notification);
            handler = new NotificationCreatedEventHandler(context);
        }
Example #3
0
 private void Handle(NotificationCreatedEvent evnt)
 {
     _info = evnt.Info;
 }