public WhenProcessingMessages()
        {
            var handler      = new MockPoisonMessageHandler();
            var mockResolver = MockDependencyResolver
                               .CreateFor <IPoisonMessageHandler>(handler);

            DependencyResolverFactory.Register(mockResolver);
            handler.Clear();
        }
        public WhenProcessingMessages()
        {
            var handler = new MockPoisonMessageHandler();
            var mockResolver = MockDependencyResolver
                .CreateFor<IPoisonMessageHandler>(handler);

            DependencyResolverFactory.Register(mockResolver);
            handler.Clear();
        }