public NotificationStatusChangeEventHandlerTests()
        {
            context = new TestIwsContext();
            var userContext = new TestUserContext(UserId);

            handler = new NotificationStatusChangeEventHandler(context, userContext);

            context.Users.Add(UserFactory.Create(UserId, AnyString, AnyString, AnyString, AnyString));

            notificationAssessment = new NotificationAssessment(NotificationId);

            receivedEvent = new NotificationStatusChangeEvent(notificationAssessment,
                NotificationStatus.Submitted);
        }
Ejemplo n.º 2
0
        public NotificationStatusChangeEventHandlerTests()
        {
            context = new TestIwsContext();
            var userContext = new TestUserContext(UserId);

            handler = new NotificationStatusChangeEventHandler(context, userContext);

            context.Users.Add(UserFactory.Create(UserId, AnyString, AnyString, AnyString, AnyString));

            notificationAssessment = new NotificationAssessment(NotificationId);

            receivedEvent = new NotificationStatusChangeEvent(notificationAssessment,
                                                              NotificationStatus.Submitted);
        }