public CourierAnnouncerImpl(
            IThreadingProxy threadingProxy,
            ManageableCourierEndpoint localEndpoint,
            OutboundEnvelopeManager outboundEnvelopeManager)
        {
            this.threadingProxy          = threadingProxy;
            this.localEndpoint           = localEndpoint;
            this.outboundEnvelopeManager = outboundEnvelopeManager;

            this.thread = threadingProxy.CreateThread(ThreadStart, new ThreadCreationOptions()
            {
                IsBackground = true
            });
            this.cancellationTokenSource = threadingProxy.CreateCancellationTokenSource();
        }
 public OutboundEnvelopeManagerImplTests()
 {
     testObj = new OutboundEnvelopeManagerImpl(guidProxy, outboundEnvelopeContextFactory, activeEnvelopeContextsById);
 }