public void Setup()
        {
            persister = CreateTimeoutPersister();
            messageSender = new FakeMessageSender();

            manager = new DefaultTimeoutManager
                {
                    TimeoutsPersister = persister,
                    MessageSender = messageSender,
                };

            receiver = new TimeoutPersisterReceiver
                {
                    TimeoutManager = manager,
                    TimeoutsPersister = persister,
                    MessageSender = messageSender,
                    SecondsToSleepBetweenPolls = 1,
                };
        }
        public void Should_dispatch_timeout_if_is_due_now()
        {
           var  messageSender = new FakeMessageSender();

            var configure = new BusConfiguration().BuildConfiguration();

            configure.localAddress = new Address("sdad", "asda");
            var manager = new DefaultTimeoutManager
            {
                MessageSender = messageSender,
                Configure = configure
            };

            manager.PushTimeout(new TimeoutData
                {
                    Time = DateTime.UtcNow,
                });

            Assert.AreEqual(1, messageSender.MessagesSent);
        }