public override void SetUp()
        {
            var admin = new PostgresqlEnvelopeStorageAdmin(new PostgresqlSettings
            {
                ConnectionString = Servers.PostgresConnectionString
            });

            admin.RecreateAll();

            var registry = new ScheduledMessageApp();

            theReceiver = registry.Receiver;

            var logger = new StorytellerAspNetCoreLogger();

            Context.Reporting.Log(logger);


            theHost = Host
                      .CreateDefaultBuilder()
                      .ConfigureLogging(x => x.AddProvider(logger))
                      .UseJasper(registry)
                      .Start();
        }
 public ScheduledMessageCatcher(ScheduledMessageReceiver receiver)
 {
     _receiver = receiver;
 }