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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
ファイル: Notification.cs プロジェクト: zanderphh/Shop
 private void Handle(NotificationCreatedEvent evnt)
 {
     _info = evnt.Info;
 }