public async Task Publish_ExecuteHandlers()
        {
            var session      = CreateSession();
            var notification = TestNotification.New();

            await session.PublishNotification(notification);

            Assert.Contains(notification.Data, TestNotificationHandler.ExecutedNotifications);
        }
        public async Task Publish_PassSessionToContext()
        {
            var session      = CreateSession();
            var notification = TestNotification.New();

            await session.PublishNotification(notification);

            CatchNotificationPipelineStep.AssertNotificationContextCaptured <TestNotification>(context => context.Session.Id == session.Id);
        }