Exemple #1
0
        public void WhenConsumerIsCreated_AndPurgeOnStartup_ThenDestinationIsPurged()
        {
            const string Destination = "anyQueue";

            testee.PurgeOnStartup = true;
            StartTestee(TransactionSettings.Default);
            SetupGetQueue(session, Destination);

            testee.CreateMessageConsumer(Destination);

            purger.Verify(p => p.Purge(session.Object, It.Is <IQueue>(d => d.QueueName.Contains(Destination))));
        }