예제 #1
0
        public override void SetUp()
        {
            _latched   = false;
            _unlatched = false;
            _pingFails = false;

            theSettings = new AdvancedSettings(null);

            _endpoint     = Substitute.For <Endpoint>();
            theRetryAgent =
                new LightweightSendingAgent(TransportLogger.Empty(), MessageLogger.Empty(), this, theSettings, _endpoint);

            for (var i = 0; i < batches.Length; i++)
            {
                batches[i] = batchForEnvelopes(15);
            }

            _enqueued.Clear();
        }